Skip to content

chore(test): consolidate execution outcome metrics coverage - #38

Merged
zerosnacks merged 1 commit into
masterfrom
chore/consolidate-low-signal-unit-tests
Sep 23, 2026
Merged

zerosnacks merged 1 commit into
masterfrom
chore/consolidate-low-signal-unit-tests

Conversation

@zerosnacks

Copy link
Copy Markdown
Member

Summary

Tightens Steda’s execution metrics unit coverage without changing production code.

Two separate outcome tests are replaced with one table-driven test covering every ExecutionOutcome variant:

  • Completed
  • Failed
  • LeaseLost
  • Cancelled
  • Suspended

For each outcome, the test verifies that the total execution count increments, the unhandled count remains unchanged, and exactly one matching bounded outcome counter is recorded.

The rest of Steda’s embedded unit suite remains intentionally unchanged because those tests already protect distinct durability, parsing, serialization, retry-classification, and database-boundary contracts.

Replace separate completed and lease-loss metric tests with one bounded
outcome matrix covering every ExecutionOutcome variant.

Verify that each completed execution increments the total execution count,
does not increment the unhandled count, and increments exactly one matching
outcome counter.

The rest of Steda's embedded unit tests already protect distinct contracts,
so leave them intentionally granular.
@zerosnacks
zerosnacks enabled auto-merge (squash) September 23, 2026 09:35
@zerosnacks
zerosnacks merged commit 8761422 into master Sep 23, 2026
13 checks passed
@zerosnacks
zerosnacks deleted the chore/consolidate-low-signal-unit-tests branch September 23, 2026 09:37
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