geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap" <goyathlay.geron...@gmail.com>
Subject Re: [test] Cannot generate report
Date Thu, 22 Mar 2007 13:10:21 GMT
Right

Cheers
Prasad

On 3/22/07, Sean Qiu <sean.xx.qiu@gmail.com> wrote:
> I find this in the file trunk/maven-plugins/pom.xml
> >>>>>>>>>>>>>>>>>>>>>>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-javadoc-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     ....
>                     <source>1.4</source>
>                     ....
>              </plugin>
> >>>>>>>>>>>>>>>>>>>>>>>>
> Change the source to 1.5, am i right?
>
> 2007/3/21, Prasad Kashyap <goyathlay.geronimo@gmail.com>:
> > Jason,
> >
> > I had once wanted to change the configuration of the javadoc plugin in
> > project-config of genesis to use 1.5 source. You had asked me to
> > override it in the testsuite locally. I believe it was done b'coz G
> > v1.2 also uses the same project-config.
> >
> > Should we leave project-config as is and reconfigure javadoc in the
> > trunk/pom.xml ? Can we change the project-config now ?
> >
> > Cheers
> > Prasad
> >
> > On 3/21/07, Sean Qiu <sean.xx.qiu@gmail.com> wrote:
> > > Could you help me for this? Input "mvn site" in trunk
> > > it report that:
> > > >>>>>>>>>>>>>>>>>
> > > [INFO] Error during page generation
> > >
> > > Embedded error: Error rendering Maven report: Exit code: 1 -
> > > /home/sean/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/SeleniumTestSupport.java:56:
> > > annotations are not supported in -source 1.4
> > > (try -source 1.5 to enable annotations)
> > >     @BeforeSuite
> > >      ^
> > >
> > > Command line was:/home/sean/java/jdk1.5.0_07/jre/../bin/javadoc
> > > -J-Xmx512m -J-Xms128m @options @packages
> > > >>>>>>>>>>>>>>>>>>>>
> > >
> > > both the javac and java version is indeed 1.5.
> > >
> > > 2007/3/21, Prasad Kashyap <goyathlay.geronimo@gmail.com>:
> > > > I'm sorry. I quite didn't understand your question.
> > > >
> > > > The tests in testsuite run against the functionalities in the Geronimo
> > > > server. So you need to start the G server to tun these tests.
> > > >
> > > > When you check out M2, you will always get the latest src and tests
> > > > and they will (should) always be in sync. So the unit tests
> > > > will(should) pass successfully.
> > > >
> > > > Does that answer your question ? Or was that your question ?
> > > >
> > > > Cheers
> > > > Prasad
> > > >
> > > >
> > > > On 3/20/07, Sean Qiu <sean.xx.qiu@gmail.com> wrote:
> > > > > There still remains one thing puzzling me.
> > > > >
> > > > > IMHO, the test should keep pace with src code.
> > > > > For example, all the test should be passed when the src code and
test
> > > > > code is within the same revision.
> > > > >
> > > > > But as you told me before, the testsuite for integrated testing must
> > > > > keep latest to make it work.I am confused with that the test is only
> > > > > used to qualify the latest src code.
> > > > >
> > > > > Does this requirement should also be fulfilled to the unit test?
> > > > > Or i can just check out the M2,for example, to run the unit test
successfully.
> > > > >
> > > > >
> > > > > Best regards.
> > > > > 2007/3/21, Sean Qiu <sean.xx.qiu@gmail.com>:
> > > > > > it is more clear to me now.
> > > > > >
> > > > > > Thanks so much.
> > > > > >
> > > > > > 2007/3/20, Prasad Kashyap <goyathlay.geronimo@gmail.com>:
> > > > > > > '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 <sean.xx.qiu@gmail.com> 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 <sean.xx.qiu@gmail.com>:
> > > > > > > > > is there any difference between "mvn test" under
trunk and "mvn" in
> > > > > > > > > trunk/testsuite?
> > > > > > > > >
> > > > > > > > > best regard.
> > > > > > > > >
> > > > > > > > > 2007/3/19, Prasad Kashyap <goyathlay.geronimo@gmail.com>:
> > > > > > > > > > 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 <sean.xx.qiu@gmail.com>
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
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Sean Qiu
> > > > >
> > > >
> > >
> > >
> > > --
> > > Sean Qiu
> > >
> >
>
>
> --
> Sean Qiu
>

Mime
View raw message