MCPcopy Create free account
hub / github.com/AimRT/AimRT / test_executor_examples

Function test_executor_examples

src/test/cases/cpp/context/test_cpp_context.py:21–29  ·  view source on GitHub ↗
(yaml_name: str, aimrt_test_runner: AimRTTestRunner)

Source from the content-addressed store, hash-verified

19
20@pytest.mark.parametrize('yaml_name', CASES)
21def test_executor_examples(yaml_name: str, aimrt_test_runner: AimRTTestRunner):
22 yaml_path = (Path(__file__).parent / yaml_name).resolve()
23 if not yaml_path.exists():
24 pytest.skip(f'YAML not found: {yaml_path}')
25 if not aimrt_test_runner.setup_from_yaml(str(yaml_path)):
26 pytest.fail('Failed to setup test environment from YAML configuration')
27 success = aimrt_test_runner.run_test()
28 if not success:
29 pytest.fail('Test execution failed')

Callers

nothing calls this directly

Calls 2

setup_from_yamlMethod · 0.45
run_testMethod · 0.45

Tested by

no test coverage detected