Skip to content

test: Count deselected files apart from skipped ones - #1716

Merged
chfast merged 1 commit into
ipsilon:masterfrom
zexoverz:1703-deselected
Sep 15, 2026
Merged

chfast merged 1 commit into
ipsilon:masterfrom
zexoverz:1703-deselected

Conversation

@zexoverz

Copy link
Copy Markdown
Contributor

Fixes #1703.

A file whose fixtures were all filtered out by -k was counted as skipped. It is the one case where run_fixture_file() returns no result, so the driver now counts it as deselected and reports it after skipped in the summary, as pytest does. Skipped keeps its meaning, deselected files are not listed, and a run which selected nothing still exits 5.

The progress row prints d for such a file. The driver test that pinned 0 passed, 1 skipped now pins 1 deselected, and two integration tests cover the -k no_such_name case from the issue, one of them beside skipped files.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

Separates deselected fixture files from skipped files in test reporting while preserving exit code 5 when nothing runs.

Changes:

  • Adds deselected outcome tracking and summary reporting.
  • Updates unit tests for deselection behavior.
  • Adds CLI integration coverage for filtering scenarios.
File summaries
File Description
test/utils/test_driver.hpp Defines the deselected outcome.
test/utils/test_driver.cpp Classifies, reports, and counts deselected files.
test/unittests/test_driver_test.cpp Tests deselection behavior.
test/integration/evmone-cli/test/CMakeLists.txt Adds CLI integration tests.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

A file whose fixtures were all filtered out by -k is the one case where run_fixture_file() returns no result. It was counted as skipped, which is the bucket for a file the tool could not run. Now it is reported as deselected, as pytest does, and neither listed nor allowed to count as verified.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The sole finding is a minor, non-blocking documentation nit.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

passed = '.',
failed = 'F',
skipped = 's',
deselected = 'd', ///< A file whose fixtures were all filtered out.
@chfast
chfast merged commit 78c8093 into ipsilon:master Sep 15, 2026
20 of 23 checks passed
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.

evmone test: count -k deselected fixtures separately from skipped

3 participants