[testng-dev] Parallel attribute documentation is unclear

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[testng-dev] Parallel attribute documentation is unclear

Tim Boemker
I think that the documentation for the parallel attribute is unclear.  It says this:

parallel="methods": TestNG will run all your test methods in separate threads. Dependent methods will also run in separate threads but they will respect the order that you specified.

I thought that parallel="methods" would provide the highest degree of parallelism possible, in the sense that any two methods, from any two tests, classes, or instances, could be run in parallel.  In fact, the methods within a particular class or test might be run in parallel, but the tests themselves will be run sequentially unless parallel="tests" because of this code in SuiteRunner.privateRun():

      // Run all the test runners
      boolean testsInParallel = XmlSuite.PARALLEL_TESTS.equals(m_suite.getParallel());
      if (!testsInParallel) {
      else {

You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.