Don't have your tests end in Test or TestCase or start with Test. That way
you can keep them in src/test/java and they will be compiled, but surefire
will not execute them

2009/12/22 Frederic Camblor <[email protected]>

> Hi all !
>
> I'm facing a problem which looks simple but I've not succeeded resolving it
> yet :-)
>
> I'd like to create "incubation tests" in my project.
>
> "incubation tests" are :
> - part of tests hierarchy, but dissociated with test classes (that is to
> say, I will locate them in something like src/incubating_test/java)
> - should be compiled in the test-compile phase
> - but not executed in the test phase (they will never be executed : they
> are
> in incubation !)
>
> If I add the src/incubating_test/java test source with the build helper
> plugin, my incubating test will be executed
> If I don't, they won't be compiled
> I could add src/incubating_test/java directly to src ... but it will be
> really confusing !
>
> I precise : I don't search a "junit/testng" solution which will "disable"
> my
> tests at runtime.
>
> It is a maven build solution (surely with the help of maven-compiler-plugin
> and maven-build-helper-plugin) that I'm looking for :-)
>
> Thanks for you help.
> Frédéric
>

Reply via email to