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

Email-ext plugin does not work with testng results(format)

    XMLWordPrintable

Details

    Description

      This plugin seem to work only with junit output report(xml) and Cobertura reports. It would be great if this can be made generic and be able to understand testng reports as well

      Attachments

        Activity

          slide_o_mix Alex Earl added a comment -

          It looks like this would be easy if the testng plugin inherited from the AbstractTestResultAction. (http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html)

          slide_o_mix Alex Earl added a comment - It looks like this would be easy if the testng plugin inherited from the AbstractTestResultAction. ( http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html )
          slide_o_mix Alex Earl added a comment -

          testng plugin needs to use the built-in way of reporting and associating test results with a build. http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html

          slide_o_mix Alex Earl added a comment - testng plugin needs to use the built-in way of reporting and associating test results with a build. http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html
          zluspai zoltan luspai added a comment -

          Here is a workaround: because the Testng's ant task also generates the junit compatible reports we can use that for putting the failed tests to the emails. Just the Junit report publisher to the Jenkins project, and set the "Test report XMLs" to find the junit formatter xmls, like: "*/junitreports/.xml".
          Suddenly the failing tests will start to appear in the emails.

          Cheers,
          Zoltan

          zluspai zoltan luspai added a comment - Here is a workaround: because the Testng's ant task also generates the junit compatible reports we can use that for putting the failed tests to the emails. Just the Junit report publisher to the Jenkins project, and set the "Test report XMLs" to find the junit formatter xmls, like: "* /junitreports/ .xml". Suddenly the failing tests will start to appear in the emails. Cheers, Zoltan

          junit defines skipped tests as failed and provides wrong FAIL status to job.

          integer Kanstantsin Shautsou added a comment - junit defines skipped tests as failed and provides wrong FAIL status to job.
          slide_o_mix Alex Earl added a comment -

          Feel free to submit a request to the testng plugin to inherit from AbstractTestResultAction. Until that happens this will remain "Won't Fix"

          slide_o_mix Alex Earl added a comment - Feel free to submit a request to the testng plugin to inherit from AbstractTestResultAction. Until that happens this will remain "Won't Fix"

          People

            Unassigned Unassigned
            hmahendrakumar Hari Mahendrakumar
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: