test-reporter icon indicating copy to clipboard operation
test-reporter copied to clipboard

Report jest-junit testsuite errors as failures

Open johnbartholomew opened this issue 3 years ago • 2 comments

Test errors are different (represented differently in the JUnit XML output from jest-junit) to test failures. Failures are tests which ran and failed, errors are for tests/test suites which did not even run because the test code itself didn't build or didn't execute correctly.

jest-junit has an option to enable reporting of test suite errors (JEST_JUNIT_REPORT_TEST_SUITE_ERRORS / reportTestSuiteErrors). This PR modifies the test-reporter to treat test suite errors as failures, instead of treating them as successful.

johnbartholomew avatar Jan 05 '22 12:01 johnbartholomew

@johnbartholomew , I ran into a similar issue as yourself where there were features that I needed from this project and looked like it wasn't being updated any time soon, so I took the initiative to fork the project myself and build the enhancements into it with a colleague. I have also now taken this PR and added the contents into that repo so you can use them :)

https://github.com/phoenix-actions/test-reporting/ https://github.com/marketplace/actions/test-reporting

IanMoroney avatar Feb 22 '22 12:02 IanMoroney

Thanks for collecting these improvements together!

johnbartholomew avatar Mar 02 '22 15:03 johnbartholomew