It's not a secret anymore!*
The moose likes Ant, Maven and Other Build Tools and the fly likes where do i add the reporting tag so that i get the maven test reports generated in surefire reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "where do i add the reporting tag so that i get the maven test reports generated in surefire reports" Watch "where do i add the reporting tag so that i get the maven test reports generated in surefire reports" New topic
Author

where do i add the reporting tag so that i get the maven test reports generated in surefire reports

linda russel
Ranch Hand

Joined: Jan 05, 2012
Posts: 86



THE thing is reports are not getting generated in surefire reports folder even after the test has completed running. I think i need to add reporting tag somewhere . i tried to add after build tag but it showed a error. how can i correct this pom.xml?
linda russel
Ranch Hand

Joined: Jan 05, 2012
Posts: 86





with the following command in command line i got the test running and got the test report generated in site folder but could not send email. how do i change my pom.xml in such a way that it executes the test first and then sends the report in a single command ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

I always generate a site for my projects and specific which reports are to be included in the site (it includes the surefire reports):



Finally, builds are done in Jenkins and I either set up Jenkins to send an email after the build, or I let people register with the RSS feeds in Jenkins.

Builds are done using the command:



I think that that should also work for you (you can also use "package" or "install" instead of "deploy")


JBoss In Action
linda russel
Ranch Hand

Joined: Jan 05, 2012
Posts: 86
Thanks for the reply. but i still do not understand why i get a error when i put a reporting tag under the build tag. At what level should i put the Reporting tag in case of my POM.xml?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where do i add the reporting tag so that i get the maven test reports generated in surefire reports