We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I see a number of people on Stackoverflow (http://stackoverflow.com/questions/tagged/classpathsuite) getting a
java.lang.Exception: class 'com.foo.bar.AllTests' (possibly indirectly) contains itself as a SuiteClass
I don't see this as a bug of cpsuite, but It would be helpfull to give a hint in the docs what the exception means and how to resolve it.
The text was updated successfully, but these errors were encountered:
Agreed, this is confusing. When combined with something like
@ClasspathSuite.SuiteTypes({SuiteType.TEST_CLASSES, SuiteType.RUN_WITH_CLASSES})
perhaps the @ClasspathSuite-annotated class itself is found while the runner scans for test classes?
@ClasspathSuite
Sorry, something went wrong.
Indeed if you use ClassnameFilters to exclude com.foo.bar.AllTests, it solves the problem:
ClassnameFilters
com.foo.bar.AllTests
@ClasspathSuite.ClassnameFilters("!.*AllTests.*")
(that example may be too aggressive in its name matching)
No branches or pull requests
I see a number of people on Stackoverflow (http://stackoverflow.com/questions/tagged/classpathsuite) getting a
I don't see this as a bug of cpsuite, but It would be helpfull to give a hint in the docs what the exception means and how to resolve it.
The text was updated successfully, but these errors were encountered: