[ 
https://issues.apache.org/jira/browse/SUREFIRE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xie tao updated SUREFIRE-2032:
------------------------------
    Description: 
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:java}
mvn test -Dgroups="red|orange"
{code}
!test report.png!

 

TagTest$RedTest has only 2 test case.

 

 

  was:
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!



> 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
>            Priority: Major
>         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:java}
> mvn test -Dgroups="red|orange"
> {code}
> !test report.png!
>  
> TagTest$RedTest has only 2 test case.
>  
>  



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

Reply via email to