Mefhisto1
Mefhisto1

Reputation: 2228

Jenkins does not generate nunit reports

I have added a test project which uses nunit for unit testing. Unit tests pass, but the build fails, because Jenkins is not able to create xml report:

Recording NUnit tests results FATAL: No NUnit test report files were found. Configuration error? Build step 'Publish NUnit test result report' marked build as failure Finished: FAILURE

Why is it trying to find files? Shouldn't it just create new or overwrite existing reports? I mean there are no reports generated before that, since it was a first build.

Upvotes: 0

Views: 1804

Answers (2)

MushtaqAR
MushtaqAR

Reputation: 71

Just try to run the Nunit console in your machine/server (where the Jenkins runs). Some times this error may occur if .NetFramework is missing

Upvotes: 0

Rishi Ahuja
Rishi Ahuja

Reputation: 126

The Nunit Plugin is for Publishing Reports generated using a build plugin of your build tool like maven/ant/gradle in Java/Android Ecosystem.

For example you can create junit reports using maven Cobertura Plugin/ JaCoCo etc for java projects in an junit style xml format in a folder location.

This plugin will provide UI reports/graphs on Jenkins based on xunit style reports generated by your build tool e.g. maven by parsing them. It will not generate the reports.

Upvotes: 0

Related Questions