Skip to end of metadata
Go to start of metadata

Plugin Information

View NUnit on the plugin site for more information.

This plugin allows you to publish NUnit test results.


This plugin makes it possible to import NUnit reports from each build into Jenkins so they are displayed with a trend graph and details about which tests that failed.

Changelog

Version 0.22 (November 17, 2017)
Version 0.21 (July 12, 2017)
Version 0.20 (May 3, 2017)
Version 0.19 (April 27, 2017)
  • Add support for NUnit3 output files (JENKINS-27618)
  • Added easier usage for pipeline (JENKINS-27906)
    • You can now use 'nunit' as the step instead of step()
  • Fix issue with exception if there are no tests (JENKINS-34452)
  • Fixed issue with failIfNoResults (JENKINS-42967)
Version 0.18 (August 26,2016)
  • JENKINS-27618: Workflow support for NUnit plugin (via pull request #11)
  • Bumped up Jenkins parent to 1.580.1
  • Added junit-plugin-1.13 as dependency
Version 0.17 (June 06, 2015)
Version 0.16 (July 24, 2014)
Version 0.15 (August 26, 2013)
  • JENKINS-9965 - Nunit plugin does not display graph when fingerprinting is used on the xml report
Version 0.14 (May 06, 2011)
  • Fixed a problem when creating temporay JUnit files. This fixes a problem that the NUnit plugin could lose several parameterized NUnit tests (JENKINS-9246)
Version 0.13 (Mar 15, 2011)
  • Fixed so parameterized NUnit tests are now shown properly with their names. (JENKINS-5674)
  • Fixed so NUnit tests that have the same namespace and class names are reported separately. Before it would just use one of the duplicated NUnit tests.
Version 0.12 (Mar 11, 2011)
  • Fixed so ignored test cases are shown as skipped in the UI, before it was only showing the number of skipped issues. (JENKINS-6353)
Version 0.11 (Feb 14, 2011)
  • Update link in help
Version 0.10 (Mar 18, 2010)
  • Plugin no longer throws a File exception when test case names contain <>|?* characters. (JENKINS-5673)
Version 0.9 (Jan 31, 2010)
  • Update code for more recent Hudson
Version 0.8 (Apr 13, 2009)
  • Re-inserted the dropped exception strings. Note, that this version requires Hudson 1.298 (JENKINS-3427)
Version 0.7
  • Removed dependency of maven plugin, this will fix the issue not being able to use the plugin with Hudson 1.296 (JENKINS-3427)
Version 0.6
  • Plugin now merges JUnit and NUnit test results into one test report (JENKINS-1091)
  • NUnit file report pattern can not cope with spaces in paths (JENKINS-1175)
Version 0.5
  • Fixed so the plugin works on a remote agent
  • More error tolerant XSL transformation (JENKINS-1077)
Version 0.4
  • Removed exception throwing when no test reports could be found
Version 0.3
  • Fixed so the plugin calls the correct method in JUnit archiver. (JENKINS-1016)
  • Made sure that NUnit record archiver runs before other notification plugins (JENKINS-947)
  • Fixed so the number of skipped tests in the NUnit report is copied to the JUnit reports.
Version 0.2.3
  • Fixed a problem when removing the temporary JUnit reports that occurred on windows.
Version 0.2.2
  • Removes the transformed JUnit reports after they have been recorded by the JUnitArchiver
Version 0.2.1
  • Splits the transformed JUnit file in code instead of using the <redirect> feature in Xalan. (Fixes JENKINS-892)
Version 0.2
  • Splits the NUnit report file into several JUnit files to fix the problem that the file name is shown instead of the namespaces.
Version 0.1
  • First version

9 Comments

  1. Thanks for this nice plugin and the last fixes you made :)

  2. Is there possibility to use this with Email-ext plugin. If yes, how can use it with jelly templates?

  3. In the configuration field "Test report XMLs" where I must point to the location of the report...

    I can't seem to figure out how to pass an environment variable... I've tried using %%, $, ${}, $

    Unknown macro: {ENV,var=""}

    ..... Nothing seems to work, only passing a real string!

  4. Hello,

    Nunit plugin is not rendering test results for Multi-configuration project.

    Are there any plans to implement it?

  5. Is there anyway to send the nunit data elsewhere via xml/json?

  6. Any plans to extract the descriptions of the tests in the test report and display them in Jenkins? 

  7. I'm seeing failures with this plugin (0.17)  and the latest release of java (1.8.0_60-b27) (I updated java today, started seeing this error after)Recording NUnit tests results
    ERROR: Publisher 'Publish NUnit test result report' aborted due to exception:
    java.io.IOException: remote file operation failed: C:\Jenkins02\workspace\R_ServicesAPI_ListingAPI_FRC at hudson.remoting.Channel@3f980e1b:CodeMonkey04-2: java.io.IOException: Remote call on CodeMonkey04-2 failed
    at hudson.FilePath.act(FilePath.java:985)
    at hudson.FilePath.act(FilePath.java:967)
    at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:145)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
    at hudson.model.Build$BuildExecution.post2(Build.java:183)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
    at hudson.model.Run.execute(Run.java:1763)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)
    Caused by: java.io.IOException: Remote call on CodeMonkey04-2 failed
    at hudson.remoting.Channel.call(Channel.java:761)
    at hudson.FilePath.act(FilePath.java:978)
    ... 11 more
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary
    at GregorSamsa.template$dot$0()
    at GregorSamsa.applyTemplates()
    at GregorSamsa.applyTemplates()
    at GregorSamsa.transform()
    at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Unknown Source)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
    at hudson.plugins.nunit.NUnitReportTransformer.transform(NUnitReportTransformer.java:68)
    at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:63)
    at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:26)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:328)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:63)
    at java.lang.Thread.run(Unknown Source)
    at ......remote call to CodeMonkey04-2(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
    at hudson.remoting.Channel.call(Channel.java:753)
    ... 12 more
    Finished: FAILURE

  8. Is it possible to extract the description please ?

    I found the description in the xml file, but it's not visible on the website :(

  9. The plugin don't work with a xml generated by the nunit3-console...when this issue will be fixed please ???