test: mutation hardening cycle — 72.19% to 78.14% (+5.95pp)#386
Conversation
…Cycle guards) Add targeted tests for estimateBudgetUsage, countJsonlLines, countRunData, prepareCycle dedup and runId sync, resolveStages named kata, writeCycleNameIfChanged, formatDuration, updateCycleState no-op, and collectCycleCompletionTotals. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The mutation test config was only running integration tests, missing the unit and helpers test files that provide direct coverage of extracted pure functions. Adding them raises visibility for Stryker. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…c, observation filter) Target enrichBetOutcomesWithDescriptions fallback, force=false defaults, collectSynthesisObservations skip logic, autoSyncBetOutcomes filtering, and listJsonFiles non-json exclusion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ontent, gyo trim) Add plain-text context output test, single-stage and pipeline print content assertions, gyo whitespace trimming test, and listSavedKatas non-json filter test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…nJson guards, completeCycle filter) Target existsSync early-return guards in updateRunJsonOnComplete, updateRunJsonAgentAttribution, readBridgeRunMeta, and the null filter in collectCycleCompletionTotals. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…gory override) Add tests for active-vs-planning cycle selection, cycle name fallback, explicit category override with --next, and yolo flag propagation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…sistArtifact dir creation) Add tests for non-json file filtering in listRecentArtifacts and artifacts directory creation on demand in persistArtifact. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Kill NoCoverage mutants in the cycle --complete plain-text output path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…oken output) Add test for complete subcommand plain-text output without token usage, verifying the no-token output path is exercised. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR adds extensive test coverage across multiple test files without modifying any production code or public APIs. Tests cover plain-text rendering, cycle management, artifact filtering, JSON file handling, and various edge cases in execute, cooldown-session, workflow-runner, and session-bridge features. Configuration file updated to include new test files in mutation testing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Per-file improvements
Key changes
Remaining survivors (diminishing returns)
Test plan
Summary by CodeRabbit