BUG: @Test.dependsOnMethods clobbers @Test.singleThreaded

38 views
Skip to first unread message

Tim Boemker

unread,
Feb 22, 2013, 12:22:53 PM2/22/13
to testn...@googlegroups.com
The documentation for @Test.singleThreaded says this:

        If set to true, all the methods on this test class are guaranteed to run in the same thread,
        even if the tests are currently being run with parallel="true". This attribute can only be
        used at the class level and will be ignored if used at the method level.

If @Test.dependsOnMethods is set on a method in a class with @Test.singleThreaded=true, methods may be run in different threads.
TestNGBug.zip

Attila Nyilas

unread,
Mar 9, 2013, 7:13:26 AM3/9/13
to testn...@googlegroups.com
I have the same issue as you. When parallel="classes" is set and I not use dependsOnMethods, every method in the same class run in the same thread. But with dependsOnMethods, they run in different threads.
Reply all
Reply to author
Forward
0 new messages