-
Notifications
You must be signed in to change notification settings - Fork 24
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
Junit report - add required fields #4
Conversation
Signed-off-by: Slawomir Jaranowski <[email protected]>
Signed-off-by: Slawomir Jaranowski <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1874,8 +1874,15 @@ private void writeJunitReport( BuildJob buildJob, String safeFileName, Execution | |||
{ | |||
File reportFile = new File( reportsDirectory, "TEST-" + safeFileName + ".xml" ); | |||
Xpp3Dom testsuite = new Xpp3Dom( "testsuite" ); | |||
testsuite.setAttribute( "tests", "1" ); | |||
testsuite.setAttribute("name", junitPackageName + "." + safeFileName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls follow the checkstyle as it is everywhere: spaces, thx
Most probably you did not run the build (mvn -P run-its verify) on this project, check for errors, thx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@eolivelli |
@@ -1874,8 +1874,15 @@ private void writeJunitReport( BuildJob buildJob, String safeFileName, Execution | |||
{ | |||
File reportFile = new File( reportsDirectory, "TEST-" + safeFileName + ".xml" ); | |||
Xpp3Dom testsuite = new Xpp3Dom( "testsuite" ); | |||
testsuite.setAttribute( "tests", "1" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds correct... why removing tests number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was moved, together with other attributes - see line 1881
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops sorry I didn't catch that
@@ -1874,8 +1874,15 @@ private void writeJunitReport( BuildJob buildJob, String safeFileName, Execution | |||
{ | |||
File reportFile = new File( reportsDirectory, "TEST-" + safeFileName + ".xml" ); | |||
Xpp3Dom testsuite = new Xpp3Dom( "testsuite" ); | |||
testsuite.setAttribute( "tests", "1" ); | |||
testsuite.setAttribute("name", junitPackageName + "." + safeFileName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testcase has the test name. This one should be only the package name as it's a suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is like in maven-surefire plugin, it is result after test with sonarqube - this is required to be set to something
Signed-off-by: Slawomir Jaranowski <[email protected]>
I got testsuite attributes from |
No description provided.