test: TestFailurePromptTransformer 100% coverage#60
test: TestFailurePromptTransformer 100% coverage#60jordanpartridge wants to merge 1 commit intomasterfrom
Conversation
61 tests covering all public methods and code paths: - canHandle: test/pest/phpunit detection and rejection - JUnit XML parsing: failures, errors, nested suites, missing attrs, invalid XML fallback - Pest output parsing: cross/X marks, file/line extraction, pass/fail/unparseable - Fix directions: all 21 assertion patterns + 5 fallback patterns - Message cleaning: ANSI stripping, truncation - Prompt formatting: numbering, headers, Unknown file handling Closes #45
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
📊 Coverage Report
Files Below Threshold
🏆 Synapse Sentinel Gate |
🔧 Synapse Sentinel: 2 checks need attentionThe following issues must be resolved before this PR can be merged: All tests passed.--- Security AuditReview the output and fix any issues.Quick Reference:
🤖 Generated by Synapse Sentinel - View Run |
Summary
TestFailurePromptTransformercovering all code pathscanHandle(), JUnit XML parsing, Pest output parsing, all 21 assertion fix directions, 5 fallback fix patterns, ANSI stripping, message truncation, prompt formatting, and context parameter handlingTest plan
test()functions)Closes #45