it is more clear to me now.
Thanks so much.
2007/3/20, Prasad Kashyap <[EMAIL PROTECTED]>:
'mvn test' runs the test lifecycle for child modules under that pom.
So it depends on where in the project tree you run that command.
That being said, the testsuite pom is configured to skip tests in the
'test' phase and execute it in the 'integration-test' phase. So 'mvn
test' in the testsuite pom will not execute any tests.
Next, since you want to see the unit test results (say for eg, in
modules), you'd want to run 'mvn test' from trunk and also run 'mvn
site' from trunk.
From the available *.txt and *.xml files in the surefire-report dir,
the site plugin will generate html files in the target/site directory.
Hope that helps
Cheers
Prasad
On 3/20/07, Sean Qiu <[EMAIL PROTECTED]> wrote:
> testsuite is the integrate test and test under trunk is the unit test.
> Am i right?
>
> I want to get the unit test result, and there is *.txt and *.xml
> result in surefire directory.
> But the *.html is not there.
>
> 2007/3/20, Sean Qiu <[EMAIL PROTECTED]>:
> > is there any difference between "mvn test" under trunk and "mvn" in
> > trunk/testsuite?
> >
> > best regard.
> >
> > 2007/3/19, Prasad Kashyap <[EMAIL PROTECTED]>:
> > > You can/should generate the testsuite report from the trunk/testsuite
directory.
> > >
> > > For the best results, change the <distributionManagement><site><url>
> > > element to a local directory and then execute 'mvn site-deploy'
> > > command.
> > >
> > > The test reports will all be neatly integrated then.
> > >
> > > Cheers
> > > Prasad
> > >
> > > On 3/19/07, Sean Qiu <[EMAIL PROTECTED]> wrote:
> > > > In the directory of "geronimo-trunk" , after inputing
> > > > mvn -Dmaven.test.skip=true -e clean install
> > > > mvn test
> > > > mvn surefire-report:report
> > > >
> > > > All the process was succefully finished.
> > > > But i cannot find the surefire report in ${trunk}/target/site as
expected.
> > > > The surefire-report.html contains 0 test.
> > > >
> > > > In the ${trunk}/module/.../target/surefire-reports
> > > > There are *.txt and *.xml test report as expected.
> > > >
> > > > How can i get the whole report ?
> > > > Am i wrong to generate the report?
> > > > Thanks,Prasad Kashyap :)
> > > >
> > > >
> > > > --
> > > > Sean Qiu
> > > >
> > >
> >
> >
> > --
> > Sean Qiu
> >
>
>
> --
> Sean Qiu
>
--
Sean Qiu