-
Notifications
You must be signed in to change notification settings - Fork 110
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
Package Name for Jenkins JUnit Reports #95
Comments
Edit: I made a typo. The above should read |
We are in the process of cleaning out old issues. If this issue still |
This is absolutely still an issue. However its even weirder. Some tests show up as packages whereas 16000 of them show up under the "(root)" package. I'm trying to find the pattern as to why some show up as packages and some show up under (root). The vast majority show up under (root). The command I'm using is
What I see if very inconsistent parsing of what looks like the same basic test structure. A top level Other times the package name itself is the full text of the top level I think that putting all of the classes into the (root) package and so many classes showing up is causing jenkins to be painfully slow when parsing test results. The code appears to expect some packages, a larger number of classes and a yet larger number of tests under the class. The layout of so many classes is causing it heartburn. |
@jjrussell What I'm not clear on is how the tests show up in a package at all. If @tebuch's info is correct, the Going back to the original request of having some way of manually specifying the package, I'm not sure of a clean way of doing that across all 5 testing tools we support. We also don't have the luxury of assuming that we are testing a class - Cucumber and Turnip tests blow that idea out of the water. |
Hrm, let me see if I can put together a simple example. |
any update on this? |
I have not gotten back to this. Sorry. You can feel free to close this and when it annoys me again I'll come back with a PR or something. |
@jperry Do you have some time to create an example? Once we have a failing test, fixing it will be a lot easier! Thanks! 😸 |
I'm finding that with junit results below the first one gets filed under (root) and the second one is interpreted as a class: <testsuite tests="23" skipped="0" errors="0" failures="0" time="0.456">
<testcase classname="REST adapter Health reporting" name="REST adapter Health reporting" time="0.002">
</testcase>
<testcase classname="Touch all files touching file nr. 1: /usr/src/app/dist/config.js" name="Touch all files touching file nr. 1: /usr/src/app/dist/config.js" time="0.039">
</testcase>
</testsuite> Perhaps it's the presence of a filename? |
I'm also facing the similar issue for jenkins root package name . Im using xmlrunner to generate the xml report which looks like this : In jenkins, this is listed under : I want to replace the /root Package name with the testcase Class name ie. FunctionalTest. @shepmaster Could you please suggest ? |
@pooja2508, Did you find any solution for this? |
I realize this is an old issue, but I believe this is actually caused by the presence of a dot ( This works very nicely for Java packages with classnames such as |
When reporting xml output in Jenkins (using either JUnit test reports directly, or through xUnit plugin), the test report shows my tests under package name "(root)". It would be nice if:
From what I've researched, in order for Jenkins to recognize a package name for JUnit tests, the xml output needs to look something like this:
<testsuite classname="PackageName.ClassName" name="TestName".... </testsuite>
where PackageName is what would replace the ugly "(root)" in Jenkins
The text was updated successfully, but these errors were encountered: