1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-22 07:52:14 +01:00
test-reporter/__tests__/fixtures
YuF-9468 f0016cb1da fix: Extract error message from PHPUnit error details when message attribute is missing
Fixes #711

When PHPUnit XML output contains <error> or <failure> elements without a
message attribute, the parser now extracts the error message from the error
details text instead of only showing the error type.

The improved logic:
1. Prefer message attribute when present (with type prepended)
2. Extract error message from details when it contains a line matching
   the error type (e.g., "TypeError: ...")
3. Fall back to first line of details
4. Finally, use error type as last resort

This provides more informative error messages in test reports when
PHPUnit outputs errors with the full stack trace in the element text
rather than a message attribute.
2026-03-16 21:39:44 +08:00
..
empty Support for the PHPUnit dialect of JUnit 2025-12-29 13:58:55 +01:00
external Merge pull request #422 from mbeccati/phpunit-support 2025-12-29 14:59:02 +01:00
nette-tester Create tester-junit reporter for Nette Tester tool 2026-01-01 19:11:59 +01:00
phpunit fix: Extract error message from PHPUnit error details when message attribute is missing 2026-03-16 21:39:44 +08:00
test-errors/jest Report jest-junit testsuite errors as failures 2026-03-15 13:24:18 +01:00
dart-json.json Fix dart-json parsing broken by print message 2021-05-13 21:48:55 +02:00
dotnet-nunit.xml Add NUnit XML results fixtures 2024-06-25 13:57:08 +02:00
dotnet-trx.trx Fix dotnet-trx parsing of tests with custom display names 2021-04-20 08:40:05 +02:00
dotnet-xunitv3.trx Add test on a trx report where the className attribute of TestMethod is missing 2025-06-22 16:18:52 +02:00
golang-json.json Correct behavior for test cases with slashes 2025-05-17 13:42:38 +02:00
jest-junit-eslint.xml Fix parsing of ESLint reports in jest-junit format 2024-06-26 13:42:32 +02:00
jest-junit.xml Implements jest-junit report parsing 2020-11-12 23:34:42 +01:00
junit-with-message.xml feat: parse junit report with message 2025-03-11 18:11:28 +10:00
mocha-json.json Fix mocha report fixture + test duration handling 2021-02-24 21:32:51 +01:00
python-xunit-pytest.xml Enhance pytest support 2025-11-15 11:55:41 -05:00
python-xunit-unittest.xml Improve testing with robust schema for unittest report 2025-11-14 21:59:25 -05:00
rspec-json.json Add support for rspec 2024-03-14 00:40:50 +01:00
swift-xunit.xml Add SwiftXunitParser class based on JavaJunitParser for swift-xunit reporter 2023-11-08 16:27:24 +01:00