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

TestNG Results Trend doesn't show a failures

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: testng-plugin
    • Labels:
    • Environment:
      windows xp 32
      Java(TM) SE Runtime Environment (build 1.7.0-b147)
      Jenkins (1.535)
    • Similar Issues:

      Description

      TestNG Results Trend doesn't show a failures after update.

      systemInfo: sysinfo.xls

      How are you running Jenkins?

      • Using the executable war like java -jar jenkins.war

        Attachments

        1. sysinfo.xls
          41 kB
        2. Testng.png
          Testng.png
          24 kB

          Issue Links

            Activity

            Hide
            nullin Nalin Makar added a comment - - edited

            Why does the build fail on test failures?

            If this is a maven build, use "-Dmaven.test.failure.ignore=true" to ensure that the build is not marked as failed even on test failures. This way you'll correctly see that the build is unstable.

            Show
            nullin Nalin Makar added a comment - - edited Why does the build fail on test failures? If this is a maven build, use "-Dmaven.test.failure.ignore=true" to ensure that the build is not marked as failed even on test failures. This way you'll correctly see that the build is unstable.
            Hide
            nullin Nalin Makar added a comment -

            Fixed. See http://jenkins-ci.org/commit/testng-plugin-plugin/f984cfafde186d3e1f3a779fccb8a2c61a20007d

            Option will be available in next release to show failed builds in Trend Graphs

            Show
            nullin Nalin Makar added a comment - Fixed. See http://jenkins-ci.org/commit/testng-plugin-plugin/f984cfafde186d3e1f3a779fccb8a2c61a20007d Option will be available in next release to show failed builds in Trend Graphs
            Hide
            x_noname Ivan Kazakov added a comment - - edited

            Thank you.

            Why does the build fail on test failures?

            I have some jobs for testing only: mvn test.

            Show
            x_noname Ivan Kazakov added a comment - - edited Thank you. Why does the build fail on test failures? I have some jobs for testing only: mvn test .
            Hide
            nullin Nalin Makar added a comment -

            Sure, you can now use this feature. I would suggest that you change your maven command to

            mvn test -Dmaven.test.failure.ignore=true

            this will ensure that the build is not marked as failed when tests fail. So, the builds will show up as unstable.

            Show
            nullin Nalin Makar added a comment - Sure, you can now use this feature. I would suggest that you change your maven command to mvn test -Dmaven.test.failure.ignore=true this will ensure that the build is not marked as failed when tests fail. So, the builds will show up as unstable.

              People

              • Assignee:
                nullin Nalin Makar
                Reporter:
                x_noname Ivan Kazakov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: