-
Notifications
You must be signed in to change notification settings - Fork 152
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
An option to disable the "root suite". #53
Comments
Not sure, that's the way it's always been. Without digging into the docs, perhaps junit requires a single top-level suite? PRs always welcome. You'd want to look at this code |
I have disabled it but not sure its worthy of a PR as its kind of hacky what I did. The reason being when I first change this:
to this:
it didnt change anything. Which I thought was very weird. Only after changing that line to this:
did I get the expected result, without a root suite. I thought the original line of code implied that the root suite was being added right there but that doesnt seem to be whats happening. My modification is working but I havent found time to dig into exactly why that was so I probably wont be creating a PR. |
|
It's Mocha that adds the root suite. It's intended primarily for things like global before/after hooks, but if you add any tests outside of a https://mochajs.org/#root-level-hooks
|
Thanks for the input @jasonk. Knowing that mocha has an implicit top-level |
Im not exactly sure what the root suite is useful for and would be very happy if I could disable it so that its not included in the output xml. I am using this tool to view my mocha tests in the xunit-viewer but have no need for any root suite thats always a success.
What exactly is it meant for?
The text was updated successfully, but these errors were encountered: