Generate test code for the given filenames.
(features: list[Feature], scenarios: list[ScenarioTemplate], steps: list[Step])
| 59 | |
| 60 | |
| 61 | def generate_code(features: list[Feature], scenarios: list[ScenarioTemplate], steps: list[Step]) -> str: |
| 62 | """Generate test code for the given filenames.""" |
| 63 | grouped_steps = group_steps(steps) |
| 64 | template = template_lookup.get_template("test.py.mak") |
| 65 | code = template.render( |
| 66 | features=features, |
| 67 | scenarios=scenarios, |
| 68 | steps=grouped_steps, |
| 69 | make_python_name=make_python_name, |
| 70 | make_python_docstring=make_python_docstring, |
| 71 | make_string_literal=make_string_literal, |
| 72 | ) |
| 73 | return cast(str, code) |
| 74 | |
| 75 | |
| 76 | def show_missing_code(config: Config) -> int: |
no test coverage detected
searching dependent graphs…