The Eclipse plugin silently swallows org.testng.TestNGException

8 views
Skip to first unread message

Claude Quezel

unread,
May 1, 2006, 5:06:18 PM5/1/06
to testn...@googlegroups.com
This happens when I specify a dependant method that does not exist. The exception when run from the console is:

org.testng.TestNGException:
org.testng.tutorial.test.TestAttributes50.method2() is depending on nonexistent method null
at org.testng.internal.MethodHelper.findMethodsNamed(MethodHelper.java:155)
at org.testng.internal.MethodHelper.topologicalSort(MethodHelper.java:393)
at org.testng.internal.MethodHelper.sortMethods(MethodHelper.java:467)
at org.testng.internal.MethodHelper.collectAndOrderMethods(MethodHelper.java:72)
at org.testng.internal.MethodHelper.collectAndOrderMethods(MethodHelper.java:40)
at org.testng.TestRunner.initMethods(TestRunner.java:337)
at org.testng.TestRunner.init(TestRunner.java:204)
at org.testng.TestRunner.init(TestRunner.java:176)
at org.testng.TestRunner.<init>(TestRunner.java:120)
at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:179)
at org.testng.SuiteRunner.run(SuiteRunner.java:146)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:736)
at org.testng.TestNG.runSuitesLocally(TestNG.java:699)
at org.testng.TestNG.run(TestNG.java:467)
at org.testng.TestNG.privateMain(TestNG.java:826)
at org.testng.TestNG.main(TestNG.java:768)

TestNG 4.7

Claude
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=28890&messageID=56102#56102

Alexandru Popescu

unread,
May 1, 2006, 5:13:31 PM5/1/06
to testn...@googlegroups.com
Unfortunately all exceptions are now lost when using the plugin. There
is also an existing JIRA issue opened, so maybe it would be good if
you can add this scenario there too.
I have tried a few weeks ago a quick solution, but unfortunately I
haven't got it working. When the time will allow me, this is one of
the top priorities.

./alex
--
.w( the_mindstorm )p.

Reply all
Reply to author
Forward
0 new messages