SOLVED: TestNG Listeners
Thanks, Wayne. I figured this list would be good because it was clearly in the surefire plugin where the breakdown was. However, I finally figured it out. Turns out that the tag in the was not formatted correctly. Is this a maven thing or specific to each plugin that wants to use map's as input for its configuration? Anyway, for future reference the properties tag is formatted with tags containing and tags. So my properties tag below would be : listener org.uncommons.reportng.JUnitXMLReporter I had assumed that it followed the format of the tag at the top level of the POM and since there is absolutely no documentaion on the internal format of the configuration parameter for the surefire plugin I had nothing to disabuse me of this notion. Thanks, Dana H. P'Simer Dana.P'[EMAIL PROTECTED] -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 7:46 PM To: Maven Users List Subject: Re: TestNG Listeners You will probably have better luck with this question on the TestNG list. Everyone there uses TestNG and many use Maven, whereas here, we all use Maven and only some use TestNG. Wayne On 3/19/08, P'Simer, Dana (Matrix) wrote: > Hello, > > I am attempting to add a listener to the testng run for my project. > It is the JUnitXMLReporter by the ReportNG project. I added ReportNG > as a dependency in the test scope (they don't have a pom so I created > one and deployed it to our private repository ) and added the listener > to the > properties: > > >org.apache.maven.plugins >maven-surefire-plugin > > false > -DstartAll=${startAll} -Xmx768m -Xms256m > -XX:PermSize=128m -XX:MaxPermSize=384m > disabledTests,generateTestFile > >**/Test*.java > > **/JBossAndPersistentTwoPhaseCacheManagerTestCase.java de > > > > > > org.uncommons.reportng.JUnitXMLReporter > > > > ... > > org.uncommons > reportng > 0.9.4 > test > > > But when I run the tests I get no output from the JUnitXMLReporter. > There are no errors and the tests complete successfully. > > When I run 'mvn help:describe -Dplugin=surefire' I get: > >$ mvn help:describe -Dplugin=surefire >[INFO] Scanning for projects... >[INFO] Searching repository for plugin with prefix: 'help'. >[INFO] > >[INFO] Building commons >[INFO]task-segment: [help:describe] (aggregator-style) >[INFO] > >[INFO] [help:describe] >[INFO] Plugin: > 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' >--- >Group Id: org.apache.maven.plugins >Artifact Id: maven-surefire-plugin >Version: 2.4.2 >Goal Prefix: surefire >Description: > >Surefire is a test framework project. > >[INFO] > >[INFO] BUILD SUCCESSFUL >[INFO] > >[INFO] Total time: 1 second >[INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 >[INFO] Final Memory: 3M/6M >[INFO] > -- > -- > > > BTW, the reason I am doing this is so that I can get a Junit Style > report for Hudson to display. If there is a better way to do this, I > would appreciate any suggestions. > > Dana H. P'Simer > Dana.P'[EMAIL PROTECTED] > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TestNG Listeners
You will probably have better luck with this question on the TestNG list. Everyone there uses TestNG and many use Maven, whereas here, we all use Maven and only some use TestNG. Wayne On 3/19/08, P'Simer, Dana (Matrix) wrote: > Hello, > > I am attempting to add a listener to the testng run for my project. It > is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a > dependency in the test scope (they don't have a pom so I created one and > deployed it to our private repository ) and added the listener to the > properties: > > >org.apache.maven.plugins >maven-surefire-plugin > > false > -DstartAll=${startAll} -Xmx768m -Xms256m > -XX:PermSize=128m -XX:MaxPermSize=384m > disabledTests,generateTestFile > >**/Test*.java > > **/JBossAndPersistentTwoPhaseCacheManagerTestCase.java > > > > > org.uncommons.reportng.JUnitXMLReporter > > > > ... > > org.uncommons > reportng > 0.9.4 > test > > > But when I run the tests I get no output from the JUnitXMLReporter. > There are no errors and the tests complete successfully. > > When I run 'mvn help:describe -Dplugin=surefire' I get: > >$ mvn help:describe -Dplugin=surefire >[INFO] Scanning for projects... >[INFO] Searching repository for plugin with prefix: 'help'. >[INFO] > >[INFO] Building commons >[INFO]task-segment: [help:describe] (aggregator-style) >[INFO] > >[INFO] [help:describe] >[INFO] Plugin: > 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' >--- >Group Id: org.apache.maven.plugins >Artifact Id: maven-surefire-plugin >Version: 2.4.2 >Goal Prefix: surefire >Description: > >Surefire is a test framework project. > >[INFO] > >[INFO] BUILD SUCCESSFUL >[INFO] > >[INFO] Total time: 1 second >[INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 >[INFO] Final Memory: 3M/6M >[INFO] > > > > BTW, the reason I am doing this is so that I can get a Junit Style > report for Hudson to display. If there is a better way to do this, I > would appreciate any suggestions. > > Dana H. P'Simer > Dana.P'[EMAIL PROTECTED] > > > - > 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: TestNG Listeners
pls include the listener configuration from your /WEB-INF/web.xml an example: org.apache.struts2.tiles.StrutsTilesListener M- - Original Message - From: "P'Simer, Dana (Matrix)" To: Sent: Wednesday, March 19, 2008 1:22 PM Subject: TestNG Listeners Hello, I am attempting to add a listener to the testng run for my project. It is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a dependency in the test scope (they don't have a pom so I created one and deployed it to our private repository ) and added the listener to the properties: org.apache.maven.plugins maven-surefire-plugin false -DstartAll=${startAll} -Xmx768m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=384m disabledTests,generateTestFile **/Test*.java **/JBossAndPersistentTwoPhaseCacheManagerTestCase.java org.uncommons.reportng.JUnitXMLReporter .. org.uncommons reportng 0.9.4 test But when I run the tests I get no output from the JUnitXMLReporter. There are no errors and the tests complete successfully. When I run 'mvn help:describe -Dplugin=surefire' I get: $ mvn help:describe -Dplugin=surefire [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building commons [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' --- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.4.2 Goal Prefix: surefire Description: Surefire is a test framework project. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] BTW, the reason I am doing this is so that I can get a Junit Style report for Hudson to display. If there is a better way to do this, I would appreciate any suggestions. Dana H. P'Simer Dana.P'[EMAIL PROTECTED] > - > 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]
TestNG Listeners
Hello, I am attempting to add a listener to the testng run for my project. It is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a dependency in the test scope (they don't have a pom so I created one and deployed it to our private repository ) and added the listener to the properties: org.apache.maven.plugins maven-surefire-plugin false -DstartAll=${startAll} -Xmx768m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=384m disabledTests,generateTestFile **/Test*.java **/JBossAndPersistentTwoPhaseCacheManagerTestCase.java org.uncommons.reportng.JUnitXMLReporter ... org.uncommons reportng 0.9.4 test But when I run the tests I get no output from the JUnitXMLReporter. There are no errors and the tests complete successfully. When I run 'mvn help:describe -Dplugin=surefire' I get: $ mvn help:describe -Dplugin=surefire [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building commons [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' --- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.4.2 Goal Prefix: surefire Description: Surefire is a test framework project. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] BTW, the reason I am doing this is so that I can get a Junit Style report for Hudson to display. If there is a better way to do this, I would appreciate any suggestions. Dana H. P'Simer Dana.P'[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]