xie tao created SUREFIRE-2032:
---------------------------------

             Summary: When declare the @Disabled annotation at the class level, 
skip displayed in other test class
                 Key: SUREFIRE-2032
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2032
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 3.0.0-M5
            Reporter: xie tao
         Attachments: test report.png

When declare the @Disabled annotation at the class level, skip displayed in 
other test class。

junit5: 5.8.2
surefire: 3.0.0-M5

I have a test class like 

{code:java}
public abstract class TagTest {

  @Tag("red")
  public static class RedTest extends TagTest {

  }

  @Disabled
  @Tag("orange")
  public static class OrangeTest extends TagTest {

  }

  @Test
  public void test1() {
    // Do Nothing
  }

  @Test
  public void test2() {
    // Do Nothing
  }
}
{code}

Run with the following command:
{code}
mvn test -Dgroups="red|orange"
{code}

!test report.png!




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to