jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petar Tahchiev" <paranoia...@gmail.com>
Subject Re: samples servlet test classes
Date Wed, 24 Sep 2008 13:30:34 GMT
Hi Martni,
I just changed the Maven mojo to add the cactus test classes
to the cactified war. This way you can place your tests in
src/test/java
and Maven will compile them in target/test-classes/
And then you can call the mojo like that:
          <testClasses>
            <directory>target/test-classes</directory>
            <includes>
              <include>**/**Test*.class</include>
            </includes>
          </testClasses>
to execute include all those classes under WEB-INF/classes of the
cactified war.

If you want to try it, please update the integration/maven2 module and
the samples/servlet module and recompile.


Cheers, Petar


2008/9/24 Martin West <martin@objectgizmos.com>

> The better way to address this problem is add the test classes to the
> cactified war as part of the cactify task. Otherwise you have to have
> special processing to build test and producton versions of the
> applicaton war.
>
> On Mon, 2008-09-22 at 21:53 +0100, Martin West wrote:
> > Another observation, all the test classes are in src/main/java. You
> > can
> > move them to the standard location, then remove the testSource and
> > testClass from surefire plugin configuration and add the following
> > plugin to the pom at the start of the plugins section.
> >
> --
> regards
>   Martin West
>   07879 680096
>   skype:amartinwest
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>


-- 
Regards, Petar!
Karlovo, Bulgaria.
- - - - - - - -
| Author @ Manning Publications.
| Technical Consultant @ HP
| BGJUG-Bulgarian Java User Group Leader.
| Apache Jakarta PMC member.
| Jakarta Cactus Lead Developer.
| Blogger: http://weblogs.java.net/blog/paranoiabla/
- - - - - - - -
Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611

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