RemoteTestNG doesn't pick up any suites

2 views
Skip to first unread message

bpedman

unread,
Oct 15, 2009, 5:51:15 PM10/15/09
to testng-dev
Hi, so, I am using eclipse and testng....just like I said in my other
email. I found another problem with RemoteTestNG...and actually found
this problem before the other one I just reported

So, I initially had the problem with the listeners not being picked up
so I tried to build the eclipse plugin against 5.10 to see if that
would fix it...it didn't. When moving to 5.10 I noticed that the
eclipse plugin would not run any tests...it would just report 'no
suite found' or something like that. The problem is that in
RemoteTestNG.run() it checks the m_suites.size() without ever setting
up the suites....it parses and configures the list of 'string' suites
in m_stringSuites but it doesn't add the tests to m_suites....this
behavior was changed from 5.9 it looks like. What I did to make it
work was at the start of the run() method I added a call to
initializeSuitesAndJarFile()...this configured m_suites and so the
tests ran like they should

There is a problem with this fix though...when TestNG.run() is called,
it adds the suites again because it calls initializeSuitesAndJarFile()
as well....maybe a proper fix would be to check the m_stringSuites
size as well as (or instead of) m_suites

Thanks,

-Brandon
Reply all
Reply to author
Forward
0 new messages