Publisher 'Publish JUnit test result report' failed: None of the test reports contained any result

1,320 views
Skip to first unread message

yash sharma

unread,
Apr 1, 2019, 11:22:52 AM4/1/19
to Jenkins Users
Hi All,

In my Jenkins I am doing a post build action which will display Junit test result report. PFB the snip for the configuration of Junit xmls

I am doing an Ant(jacoco) build to generate Junit results.
Post a successful build I get an error message like
I could see the xml generated and even the HTML file displaying the results

My Junit Plugin version is 1.2.

PFA the attached JUNIT xml.

Any help is appreciated.
Thanks and regards

report.xml

Ullrich Hafner

unread,
Apr 1, 2019, 4:44:22 PM4/1/19
to Jenkins Users
JaCoCo is a code coverage tool. The report you pasted is the code coverage result. This can visualized in Jenkins using the https://plugins.jenkins.io/code-coverage-api plugin. The JUnit plugin can’t read those reports.

In order to visualize JUnit results you need to run JUnit (without coverage) and provide a link to these results. 

Am 01.04.2019 um 16:32 schrieb yash sharma <yash...@gmail.com>:

Hi All,

In my Jenkins I am doing a post build action which will display Junit test result report. PFB the snip for the configuration of Junit xmls
<Auto Generated Inline Image 1.png>

I am doing an Ant(jacoco) build to generate Junit results.
Post a successful build I get an error message like
<Auto Generated Inline Image 2.png>
I could see the xml generated and even the HTML file displaying the results
<Auto Generated Inline Image 3.png>

My Junit Plugin version is 1.2.

PFA the attached JUNIT xml.

Any help is appreciated.
Thanks and regards


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fd0fc17a-9b36-43b6-b08a-65013b552776%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<report.xml><Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png><Auto Generated Inline Image 3.png>

yash sharma

unread,
Apr 3, 2019, 8:31:53 AM4/3/19
to Jenkins Users
Thanks for the reply, I've updated my build to publish Junit report.
PFA sample report.

Now I am getting an error like

When I validate my generated xml via the xsd : https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd

I found out that my <testsuit> tag has an attribute "skipped" which is not expected from the xsd

Do I have to update my Junit.jar which is publishing my Junit report or it is Jenkins version causing this issue.
TEST-com.bt.cotplus.ui.action.test.WebTestSuite.xml

Ullrich Hafner

unread,
Apr 3, 2019, 10:53:58 AM4/3/19
to Jenkins Users
Please use text when showing text output, images are not helpful.

The error message indicates that your report has not been found. I.e. the pattern is wrong.

yash sharma

unread,
Apr 4, 2019, 5:36:17 AM4/4/19
to Jenkins Users
Thanks Ullrich, the issue has resolved post changing to correct configuration.


On Monday, April 1, 2019 at 8:52:52 PM UTC+5:30, yash sharma wrote:
Reply all
Reply to author
Forward
0 new messages