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

Don't mark skipped testng tests as a failed build

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: testng-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.629, CentOS-07, Java 8, testNG 1.1
    • Similar Issues:

      Description

      I am running some testNG tests on Jenkins, but there are tests I have to skip every time through a SkipException.

      This causes my build to be marked as a failure and shows a red icon next to it.

      Is there a way to not mark testNG skips as a failure?

        Attachments

          Activity

          Hide
          nullin Nalin Makar added a comment -

          Not currently. Tests are marked as skipped either via SkipException by user or when configuration methods fail on which a test depends. We want to fail the build if the config methods fail. So, I am not too inclined to implement the feature requested in this ticket.

          In any case, if implemented, we'll need to make it configurable. And, this is an enhancement request.

          Show
          nullin Nalin Makar added a comment - Not currently. Tests are marked as skipped either via SkipException by user or when configuration methods fail on which a test depends. We want to fail the build if the config methods fail. So, I am not too inclined to implement the feature requested in this ticket. In any case, if implemented, we'll need to make it configurable. And, this is an enhancement request.
          Hide
          nullin Nalin Makar added a comment -

          Try testng plugin v1.13. It has new configuration options that should help with this use case.

          Show
          nullin Nalin Makar added a comment - Try testng plugin v1.13. It has new configuration options that should help with this use case.

            People

            • Assignee:
              nullin Nalin Makar
              Reporter:
              wdavis2016 Wilson Davis
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: