Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



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
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator





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 ?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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")
 
linda russel
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
A feeble attempt to tell you about our stuff that makes us money
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic