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

TestNG Results Trend doesn't show a failures

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • testng-plugin
    • windows xp 32
      Java(TM) SE Runtime Environment (build 1.7.0-b147)
      Jenkins (1.535)

    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

            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.

            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.
            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

            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
            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.

            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 .
            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.

            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

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

              Dates

                Created:
                Updated:
                Resolved: