maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maczka Michal <>
Subject RE: Problem dynamically excluding some tests
Date Fri, 03 Dec 2004 12:12:02 GMT

> -----Original Message-----
> From: Corey Scott []
> Sent: Friday, December 03, 2004 8:25 AM
> To: Maven Dev List
> Subject: Problem dynamically excluding some tests
> Currently I am trying to exclude a certain set of tests from running
> on different machines based on their operation system.  Basically I
> have some DB code which has ODBC tests that I don't want to run on my
> Redhat server but I want to run them on my XP desktop.

I would propose you to put such logic into your test classes.
IMO it is better to address this problem globally 
and "skip" system dependent tests also inside idea/eclipse when you are
Linux or Mac OS user etc.
So no matter if you are using maven, ant, eclipse or whatever else the given
test won't be executed in unsupported environment.

There are even some junit extensions (test runners) which are supporting
three states returned by test methods:
"success" "failure" and "skipped". In some situation this really makes sense
and test can be also "skipped"
for many reason e.g - becouse it was commented out.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message