Peter,

assuming that this is about JUnit 4.x (as opposed to 3.8.x), I assume
that if you use a @Test annotation on a class or its methods, it looks
like all 'nested' or 'inner' classes are being analysed as well ....

Can you have a look at the 'maven-surefire-plugin' to see whether
there's any extra configuration items you could pass along. If not, I
could only recommend to ask a question on the maven user mailing list.

Werner

Peter Schmidt wrote:
> Hi!
> 
> I created a couple of JUnit4 tests in the cpa module (JPA support for
> Castor). JUnit4 is even used by MVN (according to stacktraces in
> reports) as I added it to the pom locally.
> 
> Now my problem is, that I need a couple of classes defined to test -
> nested classes and classes and "normal" ones, to test JPA processing
> with. I Eclipse, JUnit runs perfectly. But using mvn, JUnit tries to run
> the nested classes aswell - which is not possible because they are not
> runnable! Right now I'm putting an @Ignore on every class that is not a
> testcase but so to say a test-object or ressource. Is this really
> necessary?
> 
> Thanks in advance!
> 
> Cheers,
> Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to