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__/__outputs__
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
..
dart-json.md Return links to summary report 2025-06-08 13:09:27 +02:00
dotnet-nunit.md Return links to summary report 2025-06-08 13:09:27 +02:00
dotnet-trx-only-failed.md Add stack tracke to summary 2025-06-18 14:09:49 +03:00
dotnet-trx.md Add stack tracke to summary 2025-06-18 14:09:49 +03:00
dotnet-xunitv3.md Use "Unclassified" when no class name is available 2025-06-22 20:33:16 +02:00
fluent-validation-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
golang-json.md Return links to summary report 2025-06-08 13:09:27 +02:00
jest-junit-eslint.md Return links to summary report 2025-06-08 13:09:27 +02:00
jest-junit.md Return links to summary report 2025-06-08 13:09:27 +02:00
jest-react-component-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
jest-test-errors-results.md Report jest-junit testsuite errors as failures 2026-03-15 13:24:18 +01:00
jest-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
junit-basic.md Create tests for sample JUnit files 2025-12-27 00:05:09 +01:00
junit-complete.md Create tests for sample JUnit files 2025-12-27 00:05:09 +01:00
junit-with-message.md Return links to summary report 2025-06-08 13:09:27 +02:00
mocha-json.md Return links to summary report 2025-06-08 13:09:27 +02:00
mocha-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
phpunit-junit-basic-results.md Add sample files from PHPUnit results in JUnit XML format 2025-12-29 13:58:55 +01:00
phpunit-phpcheckstyle-results.md fix: Extract error message from PHPUnit error details when message attribute is missing 2026-03-16 21:39:44 +08:00
phpunit-test-results.md fix: Extract error message from PHPUnit error details when message attribute is missing 2026-03-16 21:39:44 +08:00
provider-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
pulsar-test-results-no-merge.md Return links to summary report 2025-06-08 13:09:27 +02:00
pulsar-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
python-xunit-pytest.md Enhance pytest support 2025-11-15 11:55:41 -05:00
python-xunit-unittest.md Enhance pytest support 2025-11-15 11:55:41 -05:00
rspec-json.md Return links to summary report 2025-06-08 13:09:27 +02:00
silent-notes-test-results.md Return links to summary report 2025-06-08 13:09:27 +02:00
swift-xunit.md Return links to summary report 2025-06-08 13:09:27 +02:00
tester-bootstrap-test-results.md Create tester-junit reporter for Nette Tester tool 2026-01-01 19:11:59 +01:00
tester-v1.7-test-results.md Create tester-junit reporter for Nette Tester tool 2026-01-01 19:11:59 +01:00