On Fri, 2005-10-28 at 10:14 +0200, Alexandru Popescu wrote:
> I would say that Cedric is half wrong :-). There is a way to run multiple classes on the same
> package: right click at a package level and than Run As -> TestNG test.
Cool. Well almost. All my tests are in the default package some in
directory X and some in subdirectory X/Y. These get shown separately by
Eclipse (which is fine). If I do what you suggest on either I get:
Exception in thread "main" org.testng.TestNGException:
Cannot find class in classpath: .TestRecord
at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:44)
at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:77)
at org.testng.TestRunner.initMethods(TestRunner.java:256)
at org.testng.TestRunner.init(TestRunner.java:192)
at org.testng.TestRunner.init(TestRunner.java:164)
at org.testng.TestRunner.<init>(TestRunner.java:120)
at org.testng.eclipse.runner.RemoteTestNG$2.newTestRunner(RemoteTestNG.java:81)
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:356)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:160)
at org.testng.SuiteRunner.run(SuiteRunner.java:126)
at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:99)
at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
which seems to indicate an errant full stop (.). The code compiles fine
in Eclipse so I think all the build paths and build classpaths are
right.