RE: Maven and Unit Tests

2004-01-12 Thread James Norman
Thanks for the help, I think I'm getting a little closer.  I'm still
having a problem with Maven trying to compile the tests.  I override the
java:compile and the test:compile task in maven.xml and it will still
compile the test source files.  The compile will always fail because I
don't have the dependencies configured.  I found that it was calling the
test:compile in the ~/.maven/plugins/maven-test-plugin/plugin.jelly and
I commented the javac stuff out.  This allowed maven to generate a test
report but it has no test results in it.  The tests were previously run
from an Ant script that generated TEST-**.txt files.  Is it possible not
to compile the test source files and provide a Junit report from the
generated TEST-***.txt files, or does maven need to run the unit tests
for the report?  Any help would be appreciated.

Thanks,
James Norman

On Fri, 2004-01-09 at 16:38, Daniel Rabe wrote:
> I do the same thing -- run everything from ant, then use maven to build
> the
> web site. I think you can put:
> 
> maven.test.skip = true
> 
> in your project.properties to tell maven not to run the tests.
> 
> I also override the java:compile goal in my maven.xml:
> 
> 
>   
> 
> 
> My project.xml add the junit report to the list of reports to generate:
> 
> 
>   ... (other reports) ...
>   maven-junit-report-plugin
> 
> 
> My batch file runs junit tests from ant, then calls "maven
> site:generate" to
> generate the web site.
> 
> Hope this helps,
> Daniel Rabe
> 
> -Original Message-
> From: James Norman [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 09, 2004 4:05 PM
> To: Maven Users List
> Subject: Re: Maven and Unit Tests
> 
> 
> I'm having no luck with this.  Running 
> maven junit-report 
> fails because it's not a valid goal.  If I don't set the
>  then I won't get a Unit test report, even if I
> had
> set the maven.test.reportsDirectory.  If I do include the
>  in project.xml then Maven will try to compile
> and
> run the tests.  I would like to be able to use the output from the tests
> that were run from Ant to generate the unit tests report for the site.
> Is
> this possible?
> 
> 
> On Fri, 2004-01-09 at 00:52, Matthieu RIOU wrote:
> > I think the JUnit Report plug-in should do it. Just run :
> >  
> > maven junit-report
> >  
> > This will only work if your test output files are generated in the 
> > standard directory, if not you'll have to override the 
> > maven.test.reportsDirectory property.
> > 
> > James Norman <[EMAIL PROTECTED]> wrote:
> > Hey All,
> > I'm fairly new to Maven so be patient with me if this question has 
> > already been answered. We have been using Ant to build our software 
> > for some time now and are quite pleased with it. I'm now using Maven 
> > to generate project information and take advantage of the canned 
> > reports. I especially like the junit-report plugin. My question is if 
> > I can take advantage of this report without running the Junit tests 
> > through Maven. The tests are run through a target in Ant which is 
> > called from a shell script in our nightly build. I would prefer not to
> 
> > have to change anything in the Ant scripts as we have finally 
> > standardized on something. Let me know if there is any way to generate
> 
> > this report from the TEST-***.txt files.
> > 
> > Thanks,
> > James
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > -
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franÃais ! 
> > Testez le nouveau Yahoo! Mail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven and Unit Tests

2004-01-09 Thread Daniel Rabe
I do the same thing -- run everything from ant, then use maven to build the
web site. I think you can put:

maven.test.skip = true

in your project.properties to tell maven not to run the tests.

I also override the java:compile goal in my maven.xml:


  


My project.xml add the junit report to the list of reports to generate:


  ... (other reports) ...
  maven-junit-report-plugin


My batch file runs junit tests from ant, then calls "maven site:generate" to
generate the web site.

Hope this helps,
Daniel Rabe

-Original Message-
From: James Norman [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 4:05 PM
To: Maven Users List
Subject: Re: Maven and Unit Tests


I'm having no luck with this.  Running 
maven junit-report 
fails because it's not a valid goal.  If I don't set the
 then I won't get a Unit test report, even if I had
set the maven.test.reportsDirectory.  If I do include the
 in project.xml then Maven will try to compile and
run the tests.  I would like to be able to use the output from the tests
that were run from Ant to generate the unit tests report for the site.  Is
this possible?


On Fri, 2004-01-09 at 00:52, Matthieu RIOU wrote:
> I think the JUnit Report plug-in should do it. Just run :
>  
> maven junit-report
>  
> This will only work if your test output files are generated in the 
> standard directory, if not you'll have to override the 
> maven.test.reportsDirectory property.
> 
> James Norman <[EMAIL PROTECTED]> wrote:
> Hey All,
> I'm fairly new to Maven so be patient with me if this question has 
> already been answered. We have been using Ant to build our software 
> for some time now and are quite pleased with it. I'm now using Maven 
> to generate project information and take advantage of the canned 
> reports. I especially like the junit-report plugin. My question is if 
> I can take advantage of this report without running the Junit tests 
> through Maven. The tests are run through a target in Ant which is 
> called from a shell script in our nightly build. I would prefer not to 
> have to change anything in the Ant scripts as we have finally 
> standardized on something. Let me know if there is any way to generate 
> this report from the TEST-***.txt files.
> 
> Thanks,
> James
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! 
> Testez le nouveau Yahoo! Mail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Maven and Unit Tests

2004-01-09 Thread James Norman
I'm having no luck with this.  Running 
maven junit-report 
fails because it's not a valid goal.  If I don't set the
 then I won't get a Unit test report, even if I
had set the maven.test.reportsDirectory.  If I do include the
 in project.xml then Maven will try to compile
and run the tests.  I would like to be able to use the output from the
tests that were run from Ant to generate the unit tests report for the
site.  Is this possible?


On Fri, 2004-01-09 at 00:52, Matthieu RIOU wrote:
> I think the JUnit Report plug-in should do it. Just run :
>  
> maven junit-report
>  
> This will only work if your test output files are generated in the
> standard directory, if not you'll have to override the
> maven.test.reportsDirectory property.
> 
> James Norman <[EMAIL PROTECTED]> wrote:
> Hey All,
> I'm fairly new to Maven so be patient with me if this question has
> already been answered. We have been using Ant to build our software for
> some time now and are quite pleased with it. I'm now using Maven to
> generate project information and take advantage of the canned reports. 
> I especially like the junit-report plugin. My question is if I can take
> advantage of this report without running the Junit tests through Maven. 
> The tests are run through a target in Ant which is called from a shell
> script in our nightly build. I would prefer not to have to change
> anything in the Ant scripts as we have finally standardized on
> something. Let me know if there is any way to generate this report from
> the TEST-***.txt files.
> 
> Thanks,
> James
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franÃais !
> Testez le nouveau Yahoo! Mail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven and Unit Tests

2004-01-09 Thread Matthieu RIOU
I think the JUnit Report plug-in should do it. Just run :
 
maven junit-report
 
This will only work if your test output files are generated in the standard directory, 
if not you'll have to override the maven.test.reportsDirectory property.

James Norman <[EMAIL PROTECTED]> wrote:
Hey All,
I'm fairly new to Maven so be patient with me if this question has
already been answered. We have been using Ant to build our software for
some time now and are quite pleased with it. I'm now using Maven to
generate project information and take advantage of the canned reports. 
I especially like the junit-report plugin. My question is if I can take
advantage of this report without running the Junit tests through Maven. 
The tests are run through a target in Ant which is called from a shell
script in our nightly build. I would prefer not to have to change
anything in the Ant scripts as we have finally standardized on
something. Let me know if there is any way to generate this report from
the TEST-***.txt files.

Thanks,
James


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail