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 support for NUnit v3 XML results files #225

Merged
merged 7 commits into from
Jun 25, 2024
Merged

Conversation

kring
Copy link
Contributor

@kring kring commented Jan 19, 2023

This is important for displaying the results generated by the Unity Test Framework, among probably other uses. It builds on the work started in the https://github.com/dorny/test-reporter/tree/dotnet-nunit branch.

I struggled a little bit with how to translate the format's arbitrarily-nested suites to the test-reporter's suite, group, test structure. In the end I made the last suite before the test case the "group", and flattened any suites above that into a single suite. Except that it ignores suites of type "Theory". So basically test fixtures (classes) will be groups, and assemblies/projects will be suites. Other things are definitely possible.

Fixes #98

@timcassell
Copy link

Overlap with #206? @dorny Does this one address your concerns?

src/main.ts Outdated Show resolved Hide resolved
@j-catania j-catania added the enhancement New feature or request label Sep 22, 2023
@jozefizso
Copy link
Collaborator

I would suggest rebasing these changes onto main.

@kring
Copy link
Contributor Author

kring commented Feb 20, 2024

@jozefizso I'm just updating it for my own use, since there didn't seem to be a huge amount of interest in merging it. But if that's changed I can do the rebase.

@michaelchambaud-eaton
Copy link

Is this coming soon?

@jozefizso jozefizso self-assigned this Jun 25, 2024
src/main.ts Outdated Show resolved Hide resolved
@jozefizso jozefizso added this to the v2.0.0 milestone Jun 25, 2024
@jozefizso jozefizso merged commit 482d708 into dorny:main Jun 25, 2024
3 checks passed
@jozefizso
Copy link
Collaborator

Thanks a lot for this PR @kring!

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.

Clarification on if there is support for NUnit?
7 participants