Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Ignore is not honored on inner classes #9

Open
theoamonteiro opened this issue Aug 31, 2016 · 0 comments
Open

@Ignore is not honored on inner classes #9

theoamonteiro opened this issue Aug 31, 2016 · 0 comments

Comments

@theoamonteiro
Copy link

I would like to annotate a whole inner class with @Ignore and dismiss all test cases from there

@RunWith(NestedRunner.class)
public class Tester {

    @Test
    public void test() {
        assertTrue(true);
    }

    public class Nested {

        @Test
        public void test() {
            assertTrue(true);
        }

        @Ignore
        public class Ignored {

            @Test
            public void test() {
                fail("Should be ignored");
            }

            public class InnerIgnored {

                @Test
                public void test() {
                    fail("Should be ignored");
                }

            }

        }

        public class NotIgnored {

            @Test
            public void test() {
                assertTrue(true);
            }

            public class InnerNotIgnored {

                @Test
                public void test() {
                    assertTrue(true);
                }

            }
        }

    }

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant