Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JUnit XML format report support #83

Merged
merged 5 commits into from
Oct 27, 2024
Merged

Add JUnit XML format report support #83

merged 5 commits into from
Oct 27, 2024

Conversation

nowsprinting
Copy link
Owner

@nowsprinting nowsprinting commented May 6, 2024

If you specify path with -testHelperJUnitResults command line option, the test result will be written in JUnit XML format when the tests are finished.

Changes

  • Add JUnitXmlWriter: Convert NUnit3 test result to JUnit XML format (legacy) and write it to a file.
  • Add test callbacks, call JUnitXmlWriter when RunFinished.

Note

Verified JUnit XML format using verify-junit-xml

@github-actions github-actions bot added the enhancement New feature or request label May 6, 2024
@nowsprinting nowsprinting changed the title Add -testHelperJUnitResults option Add testHelperJUnitResults commandline option May 6, 2024
@nowsprinting nowsprinting changed the title Add testHelperJUnitResults commandline option Add -testHelperJUnitResults commandline option Jun 26, 2024
@nowsprinting
Copy link
Owner Author

This comment has been minimized.

@nowsprinting nowsprinting changed the title Add -testHelperJUnitResults commandline option Add JUnit XML format report support Oct 27, 2024
Copy link

Code Metrics Report

master (84b6839) #83 (71e3212) +/-
Coverage 75.8% 79.3% +3.5%
Code to Test Ratio 1:0.8 1:0.7 -0.2
Test Execution Time 3m1s 3m17s +16s
Details
  |                     | master (84b6839) | #83 (71e3212) |  +/-  |
  |---------------------|------------------|---------------|-------|
+ | Coverage            |            75.8% |         79.3% | +3.5% |
  |   Files             |               29 |            35 |    +6 |
  |   Lines             |              806 |          1038 |  +232 |
+ |   Covered           |              611 |           824 |  +213 |
- | Code to Test Ratio  |            1:0.8 |         1:0.7 |  -0.2 |
  |   Code              |             1478 |          1847 |  +369 |
+ |   Test              |             1321 |          1419 |   +98 |
- | Test Execution Time |             3m1s |         3m17s |  +16s |

Code coverage of files in pull request scope (100.0% → 92.6%)

Files Coverage +/-
Editor/JUnitXml/AbstractJUnitElementConverter.cs 100.0% +100.0%
Editor/JUnitXml/JUnitTestCaseElementConverter.cs 100.0% +100.0%
Editor/JUnitXml/JUnitTestSuiteElementConverter.cs 90.6% +90.6%
Editor/JUnitXml/JUnitTestSuitesElementConverter.cs 100.0% +100.0%
Editor/JUnitXml/JUnitXmlWriter.cs 97.0% +97.0%
Editor/TestRunnerCallbacksImpl.cs 11.7% +11.7%
RuntimeInternals/CommandLineArgs.cs 100.0% 0.0%

Reported by octocov

@nowsprinting nowsprinting marked this pull request as ready for review October 27, 2024 23:11
@nowsprinting nowsprinting merged commit 293fa07 into master Oct 27, 2024
14 checks passed
@nowsprinting nowsprinting deleted the feature/junit branch October 27, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant