> -----Original Message----- > From: Corey Scott [mailto:[EMAIL PROTECTED] > 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. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
