It means that test can be reused in other projects, so you can extend
or use them from the tests in that project. What is the point of
runing the same tests again in another project?

On 3/31/06, Pablo <[EMAIL PROTECTED]> wrote:
> Hello everyone
>
> Is it possible to run tests using maven-surefire-plugin when the tests
> are in a JAR file ?
> I can see that SurefirePlugin uses
> org.apache.maven.surefire.battery.DirectoryBattery exclusively and
> presume that it's not possible to use tests in JAR.
> DirectoryBattery uses DirectoryScanner which checks if the baseDir is a
> directory. If not it throws an Exception.
>
> However in the page:
> http://maven.apache.org/guides/mini/guide-attached-tests.html
> there's written that it's possible to reuse tests using tests-jar.
>
> Can someone tell me what it is meant for and how it can be used in
> surefire plugin?
>
> <project>
>   ...
>   <dependencies>
>     <dependency>
>       <groupId>com.myco.app</groupId>
>       <artifactId>foo</artifactId>
>       <version>1.0-SNAPSHOT</version>
>       <type>test-jar</type>
>     </dependency>
>   </depdendnecies>
>   ...
> </project>
>
>
> Cheers
> Pablo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to