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<http://appfuse.org/display/APF/Tutorials%22%3EPerson-CRUD>(Tutorials)</a>'.
>  But, when I doing the step listed in '<a href="
> http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-webtest";>Canoo<http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-webtest%22%3ECanoo>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<http://www.nabble.com/integration-test--DfailIfNoTests%3Dfalse-tp15022511s2369p15022511.html>),
> but then I get the same issue described in 'my Last 
> Post<http://www.nabble.com/%28AppFuse-2.0.2%29-How-set-TomCat-of-Cargo-%28P-Oracle%29-tt21582001s2369.html>
> '.
>   Could some1 tell me what would be the problem??!
>
> Ice-Man
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to