Skip to content

test: review all test files against testing guidelines#60

Merged
jrandolf merged 1 commit intomainfrom
test-quality-review
Feb 25, 2026
Merged

test: review all test files against testing guidelines#60
jrandolf merged 1 commit intomainfrom
test-quality-review

Conversation

@jrandolf
Copy link
Contributor

Summary

  • Ran iterative par5 review across all 61 test files against docs/testing.md until full convergence (5 passes, 0 remaining violations)
  • Split multi-concept tests (names with "and", multiple unrelated assertions) into focused single-assertion tests
  • Renamed tests from function-oriented names to condition+outcome form
  • Removed logic (loops, conditionals, inline filters) from test bodies
  • Replaced .to_string().contains(...) error string matching with assert!(matches!(err, Variant { .. })) where enum variants exist
  • Removed tests that verified framework/library behaviour (e.g. serde defaults)
  • Fixed isolation issues: OS-assigned ports, temp dirs, removed shared global state
  • Added missing #[ignore] annotations for external-service tests

Test plan

  • cargo test --no-run passes — all 60 modified files compile clean

🤖 Generated with Claude Code

Ran iterative par5 review across all 61 test files against
docs/testing.md until full convergence (5 passes, 0 remaining
violations).

Key changes applied across the codebase:
- Split multi-concept tests (names with "and", multiple unrelated assertions)
- Renamed tests from function-oriented to condition+outcome naming
- Removed logic (loops, conditionals, inline filters) from test bodies
- Replaced `.to_string().contains(...)` error string matching with
  `assert!(matches!(err, Variant { .. }))` where enum variants exist
- Removed tests that verified framework/library behaviour (serde defaults)
- Fixed isolation: OS-assigned ports, temp dirs, removed shared globals
- Added missing `#[ignore]` annotations for external-service tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jrandolf jrandolf merged commit 7fa33dd into main Feb 25, 2026
6 of 8 checks passed
@jrandolf jrandolf deleted the test-quality-review branch February 25, 2026 10:33
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