Skip to content

test: Count outcomes from the notes - #1693

Merged
chfast merged 1 commit into
masterfrom
test/count-from-notes
Sep 2, 2026
Merged

test: Count outcomes from the notes#1693
chfast merged 1 commit into
masterfrom
test/count-from-notes

Conversation

@chfast

@chfast chfast commented Sep 2, 2026

Copy link
Copy Markdown
Member

Every test which did not pass leaves exactly one note, so the counts follow from the notes: the three counters and the switch feeding them go, and a skip's reason is stored like any other. Peeled out of #1685, where it was a rewrite of #1684 code hiding inside "add the command".

@codspeed-hq

codspeed-hq Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 129 untouched benchmarks


Comparing test/count-from-notes (aeeaf69) with master (28f3aaf)

Open in CodSpeed

Every test which did not pass leaves exactly one note, so the counts
follow from the notes and need no counters of their own, and a skip's
reason is a reason like any other.

Claude-Session: https://claude.ai/code/session_016UHPAGwcwXMjqhTLpT31K7
@chfast
chfast force-pushed the test/count-from-notes branch from 0be7124 to aeeaf69 Compare September 2, 2026 06:02
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (c795076) to head (aeeaf69).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1693   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         181      181           
  Lines       16211    16198   -13     
  Branches     3729     3724    -5     
=======================================
- Hits        15884    15872   -12     
  Misses        248      248           
+ Partials       79       78    -1     
Flag Coverage Δ
eest-develop 87.14% <100.00%> (+0.03%) ⬆️
eest-develop-gmp 26.17% <75.00%> (+<0.01%) ⬆️
eest-legacy 16.94% <75.00%> (-0.01%) ⬇️
eest-libsecp256k1 28.38% <75.00%> (+<0.01%) ⬆️
eest-stable 87.10% <100.00%> (+0.03%) ⬆️
evmone-unittests 94.24% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core 96.19% <ø> (ø)
tooling 94.06% <100.00%> (+0.01%) ⬆️
tests 99.81% <ø> (ø)
Files with missing lines Coverage Δ
test/utils/test_driver.cpp 98.83% <100.00%> (+0.85%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 refactor is consistent with existing invariants and test coverage.

Pull request overview

Simplifies test outcome accounting by deriving counts from recorded notes.

Changes:

  • Removes redundant outcome counters and switch.
  • Stores skip reasons directly.
  • Derives passed, failed, and skipped totals after execution.
File summaries
File Description
test/utils/test_driver.cpp Simplifies outcome tracking while preserving reporting behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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

@chfast
chfast merged commit a203f55 into master Sep 2, 2026
26 checks passed
@chfast
chfast deleted the test/count-from-notes branch September 2, 2026 06:42
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.

2 participants