Skip to content

feat: add comprehensive test suite for shipping confidence#3

Merged
AngeloGiacco merged 1 commit into
mainfrom
claude/add-comprehensive-tests-8uoB5
Jan 4, 2026
Merged

feat: add comprehensive test suite for shipping confidence#3
AngeloGiacco merged 1 commit into
mainfrom
claude/add-comprehensive-tests-8uoB5

Conversation

@AngeloGiacco

Copy link
Copy Markdown
Owner
  • Fix deprecated assert_cmd API in integration tests (use prelude)
  • Add 47 integration tests covering all CLI commands
  • Add comprehensive unit tests for core modules:
    • detector.rs: 26 tests for mode detection, reason display
    • executor.rs: 26 tests for command execution, timeouts, env vars
    • runner.rs: 16 tests for check execution, results, parallelism
    • git.rs: 20 tests for repo discovery, hooks, staged files
    • config/mod.rs: 40 tests for validation, presets, serialization
    • checks/precommit.rs: 12 tests for pre-commit integration
  • Add E2E workflow tests (init -> install -> run -> uninstall)
  • Add pre-commit framework integration tests
  • Fix doc test example to use detection.mode
  • Total: 206 tests (158 unit + 47 integration + 1 doc)

- Fix deprecated assert_cmd API in integration tests (use prelude)
- Add 47 integration tests covering all CLI commands
- Add comprehensive unit tests for core modules:
  - detector.rs: 26 tests for mode detection, reason display
  - executor.rs: 26 tests for command execution, timeouts, env vars
  - runner.rs: 16 tests for check execution, results, parallelism
  - git.rs: 20 tests for repo discovery, hooks, staged files
  - config/mod.rs: 40 tests for validation, presets, serialization
  - checks/precommit.rs: 12 tests for pre-commit integration
- Add E2E workflow tests (init -> install -> run -> uninstall)
- Add pre-commit framework integration tests
- Fix doc test example to use detection.mode
- Total: 206 tests (158 unit + 47 integration + 1 doc)
@AngeloGiacco AngeloGiacco merged commit 38a7521 into main Jan 4, 2026
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