You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steve Cohen <sc...@javactivity.org> on 2011/02/10 20:22:14 UTC
Run single integration test, skip unit tests
Given a project utilizing both the surefire and failsafe plugins, if I
want to run a single integration test but skip the unit tests, is this
possible?
There is a -DskipITs switch but not a -DskipUTs switch.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Run single integration test, skip unit tests
Posted by Anders Hammar <an...@hammar.net>.
I don't thinks there's a clean way of dong this unfortunately.
One way it could be done, I think, is to create a profile that is triggered
by some property, which set the skip param of the surefire plugin.
If you want to just execute one single integration test, I would look into
the -Dit.test property. However, you still need to turn off the unit tests
as well.
If you have these requirements, it might be better to put the integration
tests in a separate Maven project.
/Anders
On Thu, Feb 10, 2011 at 20:22, Steve Cohen <sc...@javactivity.org> wrote:
> Given a project utilizing both the surefire and failsafe plugins, if I want
> to run a single integration test but skip the unit tests, is this possible?
>
> There is a -DskipITs switch but not a -DskipUTs switch.
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>