Skip to content

Commit d9f6bd5

Browse files
also test javascript e2e
1 parent 1b08d46 commit d9f6bd5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

mcp_server/test_mcp_workflow.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Tests the full cycle: behavioral baseline → optimize → behavioral candidate → compare → benchmark.
44
Uses code_to_optimize/bubble_sort.py as the target function.
55
"""
6+
from __future__ import annotations
67

78
import sys
89
import uuid
@@ -51,7 +52,9 @@ def get_e2e_test_config_by_language(language: str) -> dict[str, str]:
5152

5253

5354

54-
def doTest(config: dict[str, str]) -> int:
55+
def doTest(config: dict[str, str] | None) -> int:
56+
if config is None:
57+
return 0
5558
print("===========================================================")
5659
print("*"* 10 + config["language"] + "*"* 10)
5760
print("===========================================================")
@@ -202,8 +205,7 @@ def main() -> int:
202205
print("MCP WORKFLOW TEST")
203206
print("=" * 60)
204207
print("\n")
205-
langs = ["python", "javascript"]
206-
langs = ["python"]
208+
langs = ["python", "javascript", "java"]
207209
for lang in langs:
208210
exit_code = doTest(get_e2e_test_config_by_language(lang))
209211
if exit_code != 0:

0 commit comments

Comments
 (0)