Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-52

XML Reports include testcases from previous tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 2.0 (2.2 plugin)
    • None
    • None
    • None
    • Patch

    Description

      to reproduce

      1. create the following JUnit tests:

      public class TestA extends TestCase {
      public void test1() {
      }
      }

      public class TestB extends TestCase {
      public void test2() {
      }

      2. run 'mvn clean install'

      note that in TEST-TestB.xml includes testcase results from test1 and test2, even though TestB only has test2()

      <testsuite errors="0" skipped="0" tests="1" time="0" failures="0" name="TestB">
      ...
      <testcase time="0" name="test1"/>
      <testcase time="0" name="test2"/>
      </testsuite>

      Attachments

        1. patch.txt
          0.6 kB
          bin zhu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              binz bin zhu
              Votes:
              14 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: