MCPcopy
hub / github.com/algorithmicsuperintelligence/optillm / run_tests

Function run_tests

tests/test.py:124–133  ·  view source on GitHub ↗
(test_cases: List[Dict], approaches: List[str], client, model: str, single_test_name: str = None)

Source from the content-addressed store, hash-verified

122 }
123
124def run_tests(test_cases: List[Dict], approaches: List[str], client, model: str, single_test_name: str = None) -> List[Dict]:
125 results = []
126 for test_case in test_cases:
127 if single_test_name is None or test_case['name'] == single_test_name:
128 result = run_test_case(test_case, approaches, client, model)
129 results.append(result)
130 logger.info(f"Completed test case: {test_case['name']}")
131 if single_test_name and test_case['name'] == single_test_name:
132 break
133 return results
134
135def print_summary(results: List[Dict]):
136 print("\n=== Test Results Summary ===")

Callers 1

mainFunction · 0.70

Calls 1

run_test_caseFunction · 0.85

Tested by

no test coverage detected