Skip to content

Exclude skipped tests from apply_collection_inventory counts - #54

Open
samarmstrong wants to merge 1 commit into
SprocketLab:mainfrom
samarmstrong:upstream/fix-skip-collection-counts
Open

samarmstrong wants to merge 1 commit into
SprocketLab:mainfrom
samarmstrong:upstream/fix-skip-collection-counts

Conversation

@samarmstrong

Copy link
Copy Markdown

Summary

  • Update apply_collection_inventory in src/slop_code/evaluation/collection.py to exclude tests with status == "skipped" from total_counts and pass_counts, matching CorrectnessResults.add_test_result's docstring and backfill_reports._recalculate_evaluation_counts_dict.
  • Skipped tests remain in results.tests (and serialize under "skipped"), and missing collected tests still backfill as failed and set infrastructure_failure = True.
  • Add unit tests in tests/evaluation/collection_test.py covering skipped-test count exclusion, policy parity, and missing-test backfill.

Requested in #52 review so Regression non-pass counts (total_counts["Regression"] - pass_counts["Regression"]) match the regression failure breakdown.

Made with Cursor

Match CorrectnessResults.add_test_result so skipped tests remain in results.tests but do not contribute to total_counts or pass_counts. Backfilled missing tests still count as failed and flag infrastructure_failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant