I'm using the classpath suite library to automtically run all tests in a project, which works fine.
@RunWith(ClasspathSuite.class)
@SuiteTypes({RUN_WITH_CLASSES, TEST_CLASSES, JUNIT38_TEST_CLASSES})
@ClassnameFilters({"com.foo.bar.*"})
public class AllTests {
}
However, everytime I run AllTests
I get this error:
java.lang.Exception: class 'com.foo.bar.AllTests' (possibly indirectly) contains itself as a SuiteClass
Any ideas how to get rid of this?
And yes, I've read JUnit: (possibly indirectly) contains itself as a SuiteClass but did not find an answer, since I'm not inheriting from AllTests
in anyway.