Commit Graph
3 Commits
Author SHA1 Message Date
Shivam Mathur ff0b532a6d Preserve PHPUnit diagnostics and native annotation levels 2026-10-22 16:48:57 +05:30
John Rayes fd2044be8d ci: Extend PHPUnit problem matcher to annotate more test outcomes
The matcher only annotated failures whose output matched a single
layout ("Failed asserting that..." followed by a blank line and
file:line). Extend it so more of the output PHPUnit produces is
surfaced as GitHub annotations:

- Failures with no blank line before file:line
- Failures with a custom assertion message ahead of "Failed asserting",
  with and without a blank line (e.g. BBCTest attribute breakout)
- Risky tests and skipped tests that have a reason, as warnings
- Skipped tests with no reason (header followed by file:line), as warnings
- Tests skipped through @depends, which print no file:line, as warnings

The warning-level matchers exclude "Failed asserting" lines so failures
are not annotated a second time.
2026-10-22 16:48:57 +05:30
Shivam Mathur beaceb0089 Fix to only copy problem-matchers configs to RUNNER_TOOL_CACHE 2021-11-10 05:45:18 +05:30