junit reports are not logging failed testcase time in the generated xml files
See original GitHub issueHi, I have problems to get the built-in junit reporter working. Failed testcase time is not logged in generated junit xml files.
Current behavior:
- I am running multiple test files. Reports are getting generated for each specs. But if any tests are failing then in the report, test time is 0
In the attached xml snapshot for last test-suites, failure=1 but time=0. In the Test run, I can see it is taking 30 second, but why is it not logged in the generated junit xml report ?
Desired behavior:
Failed testcase proper time should be logged into generated junit xml file.
Steps to reproduce: (app code and test code)
- Add below configuration in
cypress.json
file
"reporter": "junit",
"reporterOptions": {
"mochaFile": "cypress/reports/result-[hash].xml"
- Create any failed testcase
- Run the tests
- Check the time attribute in the the generated junit xml file
Versions
Cypress = 3.4.1 OS = Windows 10 Browser = chrome
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
JUnit report is not showing my tests (#223132) - GitLab.org
Underlying issue seems to be that JUnit report files that are not well-formed xml or are not valid according to the "JUnit XML...
Read more >JUnit test report is not parsed properly. : TW-17249 - YouTrack
Since upgrade to TC 6.5 JUnit XML test reports are not parsed correctly - all tests are shown as passed, while actually many...
Read more >Unable to get hudson to parse JUnit test output XML
The problem is, whenever I tell ant to publish the JUnit test results, and then point it to either the raw test result...
Read more >PublishTestResults@2 - Publish Test Results v2 task
Test result format. Default: JUnit. testResultsFiles: '**/TEST-*.xml' # string. Required. Test results files. Default: **/TEST-*.xml.
Read more >Problems with test reports - SonarQube - Sonar Community
Hi, I am writing unit test using google test and generated xml file using mytest --gtest_output=xml:output.xml.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This report is generated by built-in reporter cypress option for junit. Is this not related with cypress then ?
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.