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

JUnit plugin does not seem to take skipped tests into account when failing a build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • junit-plugin
    • None
    • Jenkins 2.7.1
      JUnit plugin 1.19 (was 1.15)

      When we run a test suite using Intern and produce an XML JUnit report one class of tests is skipped as the class contains errors - this is correctly reflected as an Intern exception in the console.

      The JUnit report shows the number of failed tests correctly for the suite (eg 38 failed tests) however the plugin still reports the build as successful - we suspect because each test within the affected suite has a result status of 0, even though no tests within the suite were actually run and all other test suites were successfully completed.

      One further point of note is the overall time taken for the affected suite to run was roughly 2.5 seconds, whereas each test within the suite had a listed run time of 0 ms.

      Any assistance with this issue would be appreciated.

            Unassigned Unassigned
            gbridge Geoff Bridges
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: