Why is the XUnit plugin not working with Jenkins?

I ran the IDE tests (selenium) from jenkins, and I downloaded the XUNIT plugin for a good test report, but in the end I got this ERROR message:

The tests failed, see the result file for details:

D:\FTP\stm_atos_automatisation\rapports\ff39\rapport_ff39.html ERROR: Build step failed with exception java.lang.NullPointerException: The types section is required. at org.jenkinsci.plugins.xunit.XUnitProcessor.<init>(XUnitProcessor.java:65) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:111) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Build step 'Publish xUnit test result report' marked build as failure Finished: FAILURE 

Is there any way to solve this problem?

+3
source share
1 answer

I also got this error when I first turned on the XUnit plugin.

I did not understand (or forgot) that I needed to add a report type to the configuration of the XUnit build step. To do this, click Add , and then select the type of report that you want to analyze (for me it was PHPUnit-3.x ). See this screenshot . You also need to specify the path to the XML report files that you want to parse. (I use Codeception, so it was tests/_log/*.xml .)

+4
source

Source: https://habr.com/ru/post/975106/


All Articles