I typically write a single JUnit class with several
related test methods and common setUp/tearDown methods,
and a suite method that glomps all the tests together
autointrospectively.
for instance:
class MyTest extends TestCase {
public void testNormalRequest(){...}
public void testSecondRequest(){...}
public void testPreservePathInfo(){...}
public static Test suite(return new TestSuite(MyTest.class);}
}
When I run junit thusly:
<junit>
<test name="MyTest"/>
</junit>
...it picks up the suite and runs all three tests.
Is there any way to run only a single test method,
e.g.
<junit>
<test name="MyTest" method="testNormalRequest"/>
</junit>
The reason I want to do this is that there is some static
cruft left around by a class used by the tests which
messes up subsequent tests, so I'd like to run each
test method separately with fork='true'.
- Phil Surette
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>