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

No TestNG results should mark build as Failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • testng-plugin
    • None

      In case of No Tests were run, or All Tests were Skipped, TestNG Plugin recognizes it as:
      "Found matching files but did not find any TestNG results."
      and treats the build as Success - whereas it should be marked as failure.

      Here's an example:

      ...
      TestNG Reports Processing: START
      Looking for TestNG results report in workspace using pattern: **/testng-results.xml
      Saving reports...
      Processing 'C:\Jenkins\jobs\Automation_Matrix_New\configurations\axis-BROWSER\FIREFOX\axis-SERVER\AUTOJEN1\axis-XML_Test_File\test_suites_QA_Trails.xml\builds\523\testng\testng-results.xml'
      Found matching files but did not find any TestNG results.
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: SUCCESS

            Unassigned Unassigned
            nmanos Noam Manos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: