Classpathsuite automatically executes all JUnit tests found on the class path.
Questions tagged [classpathsuite]
5 questions
2
votes
1 answer
How to get rid of java.lang.Exception: ... contains itself as a SuiteClass
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…

BetaRide
- 16,207
- 29
- 99
- 177
2
votes
0 answers
JUnit: (possibly indirectly) contains itself as a SuiteClass
I want to add a subtest, FailingIO, to FailingTest while inheriting the parent's useful methods
@RunWith(Suite.class)
@Suite.SuiteClasses({FailingTest.FailingIO.class})
class FailingTest {
@Test
test1() {}
static class FailingIO extends…

Val
- 1
- 8
- 40
- 64
1
vote
0 answers
Trouble setting Classpath for Cpsuite with Maven
Using Maven I am creating a jar-with-dependencies for a project that uses ClasspathSuite to create a JUnit test suite. When running the jar from the command line I am running into an issue where the project classpath isn't being supplied like it…

ntin
- 177
- 9
0
votes
0 answers
How do I run a Junit test suite from an executable jar?
I have a bunch of test classes which I want to execute by running the jar file,for that purpose I am using Classpathsuite.
It runs fine in the IDE,and all tests in the package are executed.
but when I try to run it by jar file,
I get this…

nihal bhandary
- 23
- 4
0
votes
1 answer
Resolving relative path when running ClasspathSuite
When I run JUnit tests using ClasspathSuite and one of the unit tests wants to load a file using a relative path, it will use the base path of ClasspathSuite instead of the base path of the unit test.
So for example if the unit test tries to load a…

Rian Schmits
- 3,096
- 3
- 28
- 44