You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jason van Zyl <ja...@maven.org> on 2006/12/02 00:35:39 UTC

Re: Surefire and TestNG

On 14 Nov 06, at 10:11 AM 14 Nov 06, Christopher Maki wrote:

> Hi
>
> I seem to be having a problem with TestNG 5.1 and the Surefire  
> plugin (either 2.3-SNAPSHOT or 2.2).  When using Surefire 2.3- 
> SNAPSHOT I get this error when I try to run my tests:
>

Kenney is working another release of the surefire plugin and it  
should be ready early next week. TestNG support is something that  
he's working on.

Jason.

> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> org.apache.maven.surefire.booter.SurefireExecutionException:
> Cannot find class in classpath: org.maki.model.BankAccountFactory;  
> nested exception is org.testng.TestNGException:
> Cannot find class in classpath: org.maki.model.BankAccountFactory
> org.testng.TestNGException:
> Cannot find class in classpath: org.maki.model.BankAccountFactory
> 	at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:45)
> 	at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:82)
> 	at org.testng.TestRunner.initMethods(TestRunner.java:273)
> 	at org.testng.TestRunner.init(TestRunner.java:212)
> 	at org.testng.TestRunner.init(TestRunner.java:184)
> 	at org.testng.TestRunner.<init>(TestRunner.java:121)
> 	at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner 
> (SuiteRunner.java:376)
> ....
>
> The problem stems from using a testng.xml file.  If I just run the  
> tests without testng.xml all methods for all tests are executed,  
> but if I try to customize the execution via testng.xml I get the  
> above error.  I've attached a very small project to illustrate the  
> problem I'm having.
>
> Any feedback is much appreciated.
>
> Thanks
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org