You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/09/13 19:48:00 UTC
[jira] [Commented] (SUREFIRE-2032) When declare the @Disabled annotation at the class level, skip displayed in other test class
[ https://issues.apache.org/jira/browse/SUREFIRE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17603751#comment-17603751 ]
Michael Osipov commented on SUREFIRE-2032:
------------------------------------------
I can confirm this: https://github.com/apache/maven-integration-testing/pull/176#issuecomment-1245306378
> 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.10#820010)