Karma JUnit reporter alert filtering for CI/CD noise reduction
0 reputation · 24 Mar 2020, 19:06 UTC
Currently, using failOnTests: false prevents the CI process from exiting with an error code, but the JUnit reporter still captures all test states in the resulting XML file. This results in CI tools parsing and displaying every skipped case, making it difficult to distinguish between critical regressions and intentional test deactivation.
How can the karma-junit-reporter be configured to exclude specific test statuses like 'skipped' from the XML output? Is there a native configuration property to limit the reporter to only 'failed' events without writing a full custom JavaScript reporter class?