Limit the number of parallel running tests
Hi Folks,
We crated several features and using xunit. The problem is, our application does not handle properly when multiple tests are running parallely. Checking it (by commenting out features) it looks handling 2-3 features at the same time is still good.
Can you help me how I can limit the number of paralelly running features? I want to click "run all tests" and e.g. if we have 10 tests, then run 2, then other two and other two etc, currently we simply select two features and run them, and then select another 2. The problem is what you can guess, it is possible one test is 30 sec long and the other is 2 minute long so after 30 another could have been started.
If its possible then what should I do and where should I put any code or anything?
Thanks for the help :)
Cheers
-
Ive done it with https://xunit.net/docs/configuration-files this, set the max level parallelism to 2 and looks good. is this the good approach?
0
Please sign in to leave a comment.
Comments
1 comment