test-reporter
test-reporter copied to clipboard
Report jest-junit testsuite errors as failures
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 , 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
Thanks for collecting these improvements together!