Skip to content

Suite throws NoTestsDiscoveredException when all tests have been filtered #4100

Answered by marcphilipp
hblohm asked this question in Q&A
Discussion options

You must be logged in to vote

Are you referring to this exception being thrown?

NoTestsDiscoveredException(Class<?> suiteClass) {
super(String.format("Suite [%s] did not discover any tests", suiteClass.getName()));
}

If so, you can disable it by annotating your suite classes with @Suite(failIfNoTests = false). Does that help?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@hblohm
Comment options

@hblohm
Comment options

Answer selected by hblohm
Comment options

You must be logged in to vote
3 replies
@hblohm
Comment options

@mpkorstanje
Comment options

@hblohm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants