Skip to content

Comments

refactor: unify test output format and add --fail flag for CI#37

Merged
maxim-uvarov merged 3 commits intomainfrom
refactor/unified-test-output
Jan 2, 2026
Merged

refactor: unify test output format and add --fail flag for CI#37
maxim-uvarov merged 3 commits intomainfrom
refactor/unified-test-output

Conversation

@maxim-uvarov
Copy link
Member

Summary

  • Unified test output format for both unit and integration tests with consistent {type, name, status, file} records
  • Added --fail flag to exit with non-zero code when tests fail (for CI pipelines)
  • Added --update flag to auto-stage changed integration test files
  • Simplified test structure by inlining test definitions into main test-integration

Test plan

  • Verified unit tests still pass
  • Verified integration tests detect changes correctly
  • Verified --fail flag causes non-zero exit on failure
  • Verified CI workflow uses new --fail flag

🤖 Generated with Claude Code

claude and others added 3 commits December 31, 2025 01:24
- Both test types now return flat table: [[type, name, status, file]; ...]
- Add git diff detection for integration test pass/fail status
- Add --update flag to accept changed snapshots (stages files)
- Add consistent terminal output with status indicators (✓ ~ ✗)
- Add section headers ("Unit tests", "Integration tests")
- Add summary line showing passed/failed/changed counts
- Preserve --json flag for CI consumption

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add --fail flag to exit with code 1 if any tests fail
- Update CI to use --fail flag
- "changed" status (expected snapshot diffs) does not cause failure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@maxim-uvarov maxim-uvarov merged commit c6ba02f into main Jan 2, 2026
2 checks passed
@maxim-uvarov maxim-uvarov deleted the refactor/unified-test-output branch January 2, 2026 19:54
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