-->

How to display the XUnit test output on Jenkins

2019-06-14 14:27发布

问题:

According to JUnit formatted test output I created an XUnit report xml with https://github.com/garcus/wct-xunit-reporter.

What does not work is that Jenkins displays the Test-Results. I tried:

  • different XUnit Test Results (Publish xUnit test result report: [xUnit] [ERROR] - The converted file for the result file '..../testfile.xml' (during conversion process for the metric 'NUnit') is not valid.)
  • the JUnit Test Results

Is there another XUnit xsl needed, or what else do I miss?

回答1:

I found the correct test result type:

xUnit.Net-v2

That must be choosen in the dropdown of 'Publish xUnit test result report'