-
Notifications
You must be signed in to change notification settings - Fork 413
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
Test class name missing (unnamed) #919
Comments
No idea please provide a minimal reproduction. |
Even when running jenkins locally (mac) via the mvn hpi:run command with a simple spring boot project I get the following slack notifications:
First one when job starts and second when it finishes. Apparently it cannot find the tests this time even though they are run via mvn clean install and I can see the failed tests in the jenkins job console output. With the previous example the tests are somehow seen but the class name is missing (unnamed is returned by the getTestClassAndMethod method for the class name). I'm not sure if this has anything to do with some java/mvn/junit plugin but the action |
Yes it’s the junit plugin which returns this. If you search the code it does it when a parent is missing |
Understood, I'll try to dig into that plugin a bit. I did notice that the action was from the hudson package but thought there might be something more. Thanks, will get back if I get to the bottom of this. Is there a "compatibility matrix" between the junit and this plugin? |
Only latest and latest are tested and expected to work together. |
After spending too much time on this I finally got to the bottom of it (ish). We are using (for some jobs) the testng plugin for test reports. For some reason since upgrading our jenkins instance and this plugin the
I'm pretty sure the If you think this would be useful as a PR - I can add it. If not maybe you have some idea of how to fix this in a better way. |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Linux
Reproduction steps
Expected Results
See class names prefixing the test names
Actual Results
website_tests - #172 Still Failing after 9 min 50 sec (Open)
Test Status:
Passed: 764, Failed: 2, Skipped: 2
2 Failed Tests:
unnamed.checkFocusOnEligibleGamesIosLessThan7 after 0 ms
unnamed.testEligibleGamesForLoggedIn after 0 ms
Anything else?
We were using an older version of this plugin 2.49 and after upgrading to the latest version we noticed that the class name is missing or rather replaced by
unnamed
which isn't very helpful in debugging tests.Any info/hints/help would be greatly appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: