Commit 137bf9c
fix(parser): Treat risky tests as failures, not informational
Risky tests indicate problems (tests with no assertions) and should fail
the CI pipeline. This aligns with PHPUnit's --fail-on-risky flag behavior.
Changes:
- Exit with code 1 if risky tests detected (was: exit 0 with message)
- Update comment to reflect that risky tests are failures
- Remove risky count from success message (they now cause failure)
This ensures risky tests fail in CI systems (like Huawei) that expect
non-zero exit codes for test quality issues.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9158562 commit 137bf9c
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
568 | | - | |
| 566 | + | |
569 | 567 | | |
570 | 568 | | |
571 | 569 | | |
| |||
0 commit comments