Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64471

warnings-ng tool for nunit

XMLWordPrintable

      We have tried to record results of nunit2 execution via warnings-ng plugin. Unfortunately we haven't found a ready to use warnings-ng tool for nunit (we are still using nunit2 and not the nunit3).
      So we have used Microsoft tool (mssql.exe) with the xsl-convertion taken from https://github.com/jenkinsci/nunit-plugin/tree/master/src/main/resources/hudson/plugins/nunit (and added the encoding "utf-8" parameter to generate junit-files, which can be consumed by xunit-plugin).
      The resulting files could be successfully integrated into the jenkins build reports using xunit-plugin:

      xunit ( tools: [JUnit(pattern: '.out\\*.Test.junit-result.xml', stopProcessingIfError: true)] )

      But we cannot see any issues in the warnings-ng plugin (using reportIssues as follows):
      recordIssues(
                          name: 'Unit Tests',
                          enabledForFailure: true,
                          aggregatingResults: false,
                          tools: [junitParser(id: 'unitTests', name: 'UnitTests', pattern: '.out\\*.Test.junit-result.xml', reportEncoding: 'UTF-8')]
                        )

        1. 2021-03-05_08h52_30.png
          46 kB
          Konstantin Tkachenko
        2. Test.junit-result.xml
          7 kB
          Rashid

            smorita Shin-ichi Morita
            mrm927 Rashid
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: