Bugs should be posted in JIRA, not the Users list.

Wayne

On 11/14/06, Christopher Maki <[EMAIL PROTECTED]> 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:

-------------------------------------------------------
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to