MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Using ParallelizableAttribute/DegreeOfParallelismAttribute causes tests to hang mid-run #765

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include these attributes in AssemblyInfo.cs:
[assembly: MbUnit.Framework.DegreeOfParallelism(8)] //(This can be anything >1)
[assembly: MbUnit.Framework.Parallelizable(MbUnit.Framework.TestScope.All)]
2. Run test suite (we normally use Echo, but this also happens in Icarus) with 
tests (we have 145 tests in this assembly) 
3. After about 1/3 of the way in, the test harness appears to hang.  If we 
attach a debugger to it, the threads window shows threads are in our test code, 
but literally hung.  The test harness never completes running the tests no 
matter how long we've left it.  We have even given it the weekend to run, and 
no progress changes.

What is the expected output? What do you see instead?
The test harness to finish running the tests.

What version of the product are you using? On what operating system?
Version 3.2 build 517

Original issue reported on code.google.com by tekma...@gmail.com on 1 Nov 2010 at 3:12

GoogleCodeExporter commented 8 years ago
Could this be related to issue 147?
http://code.google.com/p/mb-unit/issues/detail?id=147

Original comment by francis....@gmail.com on 1 Nov 2010 at 6:06

GoogleCodeExporter commented 8 years ago
Do your tests share any state? Could it be deadlock/livelock? Can you provide a 
sample that replicates this?

Original comment by grahamr...@gmail.com on 21 Nov 2010 at 12:27