Re: samples servlet test classes
[email protected] Fri, 26 Sep 2008 13:44:46 +0200
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <OF03F398D1.D87F76C5-ONC12574D0.003FB6CC-C12574D0.003F60A7@oficina.valbosoft.com> |
Hi,
as far as I can see, you have to treat test and production versions
differently anyway, at least in my case, because for example the database
settings in the testcase are different than in the production case, and
some property files are different.
One way this could be solved is to allow the cactifywar tast to copy
certain property files.
regards, Bo
Martin West
<martin@objectgiz
mos.com> Para
Cactus Users List
24/09/2008 09:41 <[email protected]>
cc
Por favor, Asunto
responda a Re: samples servlet test classes
"Cactus Users
List"
<cactus-user@jaka
rta.apache.org>
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: [email protected]
For additional commands, e-mail: [email protected]