I'm sorry, I've provided answers to this question many times. If my
suggestions don't work for you, I'm unable to provide further
assistance. I'd suggest you read Cargo's documentation to try and
understand it better.
http://cargo.codehaus.org/
Matt
On Jan 26, 2009, at 11:18 AM, Ice-Man wrote:
Matt,
Now, I still get the (common) tests run: 12, Failures: 0,...
But, when it (seems) try to run WebTests, it tries to load Cargo's
TomCat (obs.: I thought Canoo were JavaWebContainer
independent! :o), so I get the same issue described in 'my Last
Post'(FldStarTmcat.JPG).
Could u suggest me somewhat to solve the problem??!
Ice-Man
2009/1/26 Matt Raible <[email protected]>
The problem is happening when the surefire plugin executes and tries
to find a JUnit tests with the name "PersonTests". In pom.xml, try
changing "test" to "webtest":
<property name="test" value="run-all-
tests" />
<echo level="info">Testing '$
{project.build.finalName}' with locale '${user.language}'</echo>
<ant antfile="src/test/resources/web-
tests.xml" target="${test}">
<property name="user.language"
value="${user.language}" />
<property name="webapp.name"
value="${project.build.finalName}" />
<property name="host" value="$
{cargo.host}" />
<property name="port" value="$
{cargo.port}" />
</ant>
To:
<property name="webtest" value="run-
all-tests" />
<echo level="info">Testing '$
{project.build.finalName}' with locale '${user.language}'</echo>
<ant antfile="src/test/resources/web-
tests.xml" target="${webtest}">
<property name="user.language"
value="${user.language}" />
<property name="webapp.name"
value="${project.build.finalName}" />
<property name="host" value="$
{cargo.host}" />
<property name="port" value="$
{cargo.port}" />
</ant>
Then run it with -Dwebtest=PersonTests. If this works, please let us
know so we can fix it in the next release.
Matt
On Mon, Jan 26, 2009 at 4:15 AM, Ice-Man
<[email protected]> wrote:
Hi every1,
I've been doing all the steps sucessfully (by the way, with
ellegant workArounds to Oracle) of '<a href="http://appfuse.org/display/APF/Tutorials
">Person-CRUD (Tutorials)</a>'. But, when I doing the step listed in
'<a href="http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-webtest
">Canoo WebTest</a>' and ran '<b>mvn integration-test -
Dtest=PersonTests</b>'. However, I simply get a msg as saw in picture
"CanWebTst.jpg".
(Obs.: it's funny coz I try the same cmd, but with
'UserTests' (original of AppFuse) (instead of 'PersonTests') and I
get the same result! :o)
I also even tried the option suggest by fellow Gareth (integration-
test DfailIfNoTests=false), but then
Ice-Man
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
<
FldStarTmcat
.JPG
>---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]