-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Describe the bug
When using the JUnit reporter to output test results, failed suites are not accurately reported in the JUnit report. An entry for a failed suite in the report contains tests="0" failures="0" errors="0" skipped="0" time="0".
As a result, debugging test suite failures with our CICD is very difficult because the vitest run command fails but no information about the failure can be found in either the JUint test report or stdout and the CICD platform reports all tests as passing.
Reproduction
vitest run --reporter=junit --outputFile=./unitTestReport.xml
System Info
N/AUsed Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable