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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin
    • None
    • 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

            krissap Krip
            blatinville Bertrand Latinville
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: