Failed test age is incorrect if same test name exist in different package

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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: junit-plugin
    • Environment:
      Jenkins-1.609.3 & 2.198
      Junit-plugin 1.9 & 1.28
      gtest to run test & produce xml results
    • junit-1.30

      If a test case name is present in several packages, and a test is failed in one of the packages, the age of the failure always will be '1'.

      Moreover the ext email plugin will send a mail at every run if the regression trigger is configured.

      See this simple example of test results:

      <testsuites name="AllTests"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package2.test"><failure message="FAILED"/></testcase></testsuite></testsuites>

      <testsuites name="AllTests2"><testsuite name="foo"><testcase name="ThisTestNameIsDuplicated" classname="package1.test"/></testsuite></testsuites>

      These two test cases :

      • package1.test.ThisTestNameIsDuplicated
      • package2.test.ThisTestNameIsDuplicated
        are displayed properly in Jenkins,
        but the age of failure of package2.test.ThisTestNameIsDuplicated will always be 1
        after several run of the "tests".

      It seems that the classname is not taken into account when computing the age.

        1. config.xml
          4 kB
          Bertrand Latinville
        2. junit_age1.png
          40 kB
          Bertrand Latinville
        3. Regression_at_each_run.png
          25 kB
          Bertrand Latinville
        4. tests_regression_presend_check_groovy.template
          2 kB
          Krip

            Assignee:
            Krip
            Reporter:
            Bertrand Latinville
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: