Hi,
thanks for the answers. I know that I can controls, which tests are
executed by including or excluding some of them, but that's not the
point. Any tests, that match the inclusion pattern, should not be
executed, if they are not a Junit TestCase, i.e. extend
junit.framework.TestCase and is not abstract. E.g. this class:
<code>
public class DoesThisExecuteTest {
}
</code>
should not be considered as test case and be executed, but it is when
running "mvn test":
...
Running de.kvb.apo.corrservice.DoesThisExecuteTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<<
FAILURE!
...
with this report:
-------------------------------------------------------------------------------
Test set: de.kvb.apo.corrservice.DoesThisExecuteTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<<
FAILURE!
de.kvb.apo.corrservice.DoesThisExecuteTest Time elapsed: 0 sec <<< ERROR!
java.lang.Exception: No runnable methods
at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:34)
at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
That's not a real problem, and will not exist any more with Junit 4,
but, well, it's not "really clean", is it?
Regards,
Martin.
--
Martin Monsorno
mailto:[EMAIL PROTECTED]
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]