maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Kaplan <d...@mirthcorp.com>
Subject Re: Maven: How can I run/include a class in a jar with the failsafe plugin?
Date Thu, 17 Oct 2013 20:49:24 GMT
Minor correction:  This isn't a test runner, but a pojo with the @RunWith
annotation on it.


On Thu, Oct 17, 2013 at 1:23 PM, Dan Kaplan <dank@mirthcorp.com> wrote:

> I've made my own test runner for integration tests that I want to execute,
> but I've put it in a reusable jar.  I'm trying to tell failsafe to use it
> but I'm not sure how to because [the documentation for includes][1] says:
>
> > A list of <include> elements specifying the tests (by pattern) that
> should be included in testing. When not specified and when the test
> parameter is not specified, the default includes will be
>
> >     <includes>
>      <include>**/IT*.java</include>
>      <include>**/*IT.java</include>
>      <include>**/*ITCase.java</include>
>     </includes>
>
> > Each include item may also contain a comma-separated sublist of items,
> which will be treated as multiple  <include> entries.
>     This parameter is ignored if the TestNG suiteXmlFiles parameter is
> specified.
>
> But this test runner is in the classpath, not on the filesystem.  How can
> I tell failsafe to use my class runner and only my class runner?
>
>   [1]:
> http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#includes
>
> --
> Thanks,
> Dan
>



-- 
Thanks,
Dan

-- 
CONFIDENTIALITY NOTICE: The information contained in this electronic 
transmission may be confidential. If you are not an intended recipient, be 
aware that any disclosure, copying, distribution or use of the information 
contained in this transmission is prohibited and may be unlawful. If you 
have received this transmission in error, please notify us by email reply 
and then erase it from your computer system.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message