Test Report shows test passed that actually did not run due to initialization errors

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When running JUnit4 tests (using buckminster in our case, but I guess this is not relevant), failing class initializations (@BeforeClass) report the initialization as a failed additional test. All test cases located in this class however are reported as "passed", while "skipped" would be more appropriate.

      I'll attach

      • the test job definition
      • a small demo test suite which five test classes (each of them having a different behavior: success, ignored, assertionfailure, exception, exception in class setup)
      • screenshots showing the test reports generated (the uploaded test suite gives produced run#27)
      • the JUnit xml output generated by buckminster (calling junit) and used to produce the report (de.logiball.ci.testfailure.test_JUnit.xml)
      • the junitResult.xml generated from that

      The reports shown are misleading at least in case of "exception in class setup", I would guess also in case of "ignored" (while I am not sure where to report those two cases; mixing intentionally skipped tests with those skipped by an initialization error may also be a bad idea).

        1. config.xml
          3 kB
          Benjamin Sailer
        2. de.logiball.ci.testfailure.test_JUnit.xml
          12 kB
          Benjamin Sailer
        3. JenkinsAllTestResults.png
          20 kB
          Benjamin Sailer
        4. JenkinsClassTestResults.png
          11 kB
          Benjamin Sailer
        5. JenkinsPackageTestResults.png
          22 kB
          Benjamin Sailer
        6. JenkinsTestResultTrend.png
          55 kB
          Benjamin Sailer
        7. junitResult.xml
          14 kB
          Benjamin Sailer

            Assignee:
            Unassigned
            Reporter:
            Benjamin Sailer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: