Skip to content

feat: add CSV test reporting and structured marker groups#6894

Draft
dmitry-tokarev-nv wants to merge 1 commit intomainfrom
feat/pytest-marker-reporting
Draft

feat: add CSV test reporting and structured marker groups#6894
dmitry-tokarev-nv wants to merge 1 commit intomainfrom
feat/pytest-marker-reporting

Conversation

@dmitry-tokarev-nv
Copy link
Contributor

Summary

  • Refactor tests/conftest.py marker registration from a flat list into logical groups (CI workflow, GPU scale, test scope, framework, feature) for better maintainability
  • Add --collect-report PATH pytest option: writes a CSV with test_name, markers, model (useful with --collect-only for test inventory)
  • Add --run-report PATH pytest option: writes a CSV with test_name, markers, model, result, duration after execution
  • Add Framework (vllm, trtllm, sglang, no_framework) as a required category in report_pytest_markers.py
  • Update tests/README.md marker documentation

Usage

# Collection inventory
pytest --collect-only --collect-report artifacts/collection.csv -m "pre_merge"

# Execution report
pytest tests/unit -n auto --run-report artifacts/run_report.csv

Test plan

  • Verify --collect-report produces valid CSV with correct columns
  • Verify --run-report captures pass/fail/skip/xfail outcomes and durations
  • Verify marker groups register correctly (no "marker not found" warnings)
  • Verify report_pytest_markers.py validates Framework category

🤖 Generated with Claude Code

Refactor conftest.py marker registration into logical groups
(CI workflow, GPU scale, test scope, framework, feature) and add
two new pytest CLI options for CSV report generation:

- --collect-report PATH: writes test_name, markers, model CSV
  (useful with --collect-only for test inventory)
- --run-report PATH: writes test_name, markers, model, result,
  duration CSV after execution

Also adds Framework as a required category in report_pytest_markers.py
and updates tests/README.md marker documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Dmitry Tokarev <dtokarev@nvidia.com>
@github-actions github-actions bot added feat documentation Improvements or additions to documentation labels Mar 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feat size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant