justinmclean opened a new pull request, #234: URL: https://github.com/apache/airflow-steward/pull/234
# tests(skill-evals): add test suite for runner.py `runner.py` in `tools/skill-evals` previously had zero test coverage. This PR adds 37 tests covering all public functions, and makes a small refactor to `main()` to make it cleanly testable. ## Changes `tests/test_runner.py` — new test suite covering: - `build_corpus_text` / `build_roster_text` — empty and multi-item cases - `find_repo_root` — child dir, root itself, missing `.git` - `extract_skill_section` — heading levels, code fences, missing heading - `load_step_config` — `step-config.json` path, `system-prompt.md` fallback, output-spec appending, custom user-prompt-template, missing both - `load_case` — optional corpus/roster, required report/expected - `find_cases` — single case, fixtures dir, recursive skill dir, nested-fixtures deduplication - `main` CLI — no cases → exit 1, `--quiet` flag, prompt printing, caching, bad template raises `runner.py` — `main()` now accepts an optional `argv` parameter (consistent with `sandbox-lint` and `skill-validator`) so tests can invoke it directly without patching `sys.argv`. CLI output capture in tests uses pytest's `capsys` fixture rather than monkeypatching `sys.stdout`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
