I am new to Maven (2) and to TestNG. I decided to take both for a spin, and I ran into the same situation. I had no problem running my unit tests, but I was not able to generate the report. I had trouble finding any documentation. I actually posted my questions on the TestNG mailing list at http://forums.opensymphony.com/thread.jspa?threadID=24959&tstart=0. I guess I should have posted here. In any event, I was able to generate my report, but there is something that I didn't expect to see. I have one test class, com.foo.MessageProviderTest with one test, testGetMessageOfTheDay(). On the report under the Test Cases section, what shows up under MessageProviderTest is class org.apache.maven.surefire.battery.JUnitBattery.testGetMessageOfTheDay. It appears that at runtime, a class is dynamically generated. I am just surprised to see that show up in the report.
On 4/7/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > I'm not sure where the documentation "lives" but this is all I did to > get Surefire reports added to my site. ;-) > > <reporting> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>surefire-report-maven-plugin</artifactId> > </plugin> > </plugins> > </reporting> > > Since its just a report of your test results, I'm not sure what if > anything can be configured in the plugin. You might just find it > easiest to pull the plugin code from Subversion and build the site > yourself? > > HTH. > Wayne > > On 4/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I suppose it would help if I actually sent this to the right address... :\ > > > > It's better to be hated for who you are > > than loved for who you are not > > > > Ian D. Stewart > > Appl Dev Analyst-Advisory, DCS Automation > > JPMorganChase Global Technology Infrastructure > > Phone: (614) 244-2564 > > Pager: (888) 260-0078 > > ----- Forwarded by Ian D Stewart/OH/ONE on 04/07/2006 11:44 AM ----- > > > > > > Ian D Stewart To: [EMAIL PROTECTED] > > cc: > > 04/07/2006 11:42 Subject: 404 on > > Surefire-Report Plugin > > AM > > > > > > > > > > Dear List, > > > > I'm at the point now where I'm ready to start generating reports to go with > > all of my spiffy code :) > > > > The logical starting point seemed to me to be the Surefire report, so I > > went to maven.apache.org, clicked on "Available Plugins", and then > > "surefire-report". Unfortunately, this link gets redirected to > > http://maven.apache.org/plugins/maven-surefire-report-plugin, which > > displays a nice shiny "Page Not Found" error. > > > > I have opened an issue in JIRA (http://jira.codehaus.org/browse/MNG-2212). > > In the meantime, can anyone point me to the real documentation for > > maven-surefire-report-plugin? > > > > > > Thanks, > > Ian > > > > > > It's better to be hated for who you are > > than loved for who you are not > > > > Ian D. Stewart > > Appl Dev Analyst-Advisory, DCS Automation > > JPMorganChase Global Technology Infrastructure > > Phone: (614) 244-2564 > > Pager: (888) 260-0078 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- - John --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]