testng-team / testng-googlecode

DEPRECATED: Automatically exported from code.google.com/p/testng
0 stars 0 forks source link

TestNg hangs when no tests are selected and Suite configuration is set to 'parallel' #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a TestSelector that does not select any tests
2. Create a test suite,configure it to run the tests in parallel (attribute 
'parallel="methods"' and use the created test selector
3. Run the test suite

What is the expected output? What do you see instead?
I expected TestNg just to finish the execution without executing any tests.

The actual behaviour is that TestNg just hangs.

What version of the product are you using? On what operating system?
The version used is TestNg 5.12.1

This problem does not occur in version 5.10 or earlier.

Please provide any additional information below.
After some investigation I saw that the parallel test executor are all waiting 
on an empty task list. The method BlockingQueue#take() will wait forever until 
there is a task, however there were no tasks to start with. See also attached 
thread dump

Original issue reported on code.google.com by francis....@gmail.com on 29 Jul 2010 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
One workaround is to remove the 'parallel'-attribute from the suite file.

Original comment by francis....@gmail.com on 29 Jul 2010 at 9:00