Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude some features/scenarios from parallel run?

I have a test solution using Specflow, selenium, NUnit running in parallel added this in AssemblyInfo: [assembly: Parallelizable(ParallelScope.Fixtures)]

everything ran nicely in parallel, but now I added a feature with a couple of scenarios that are not compatible with all the rest. So I'd like for them to run in separate.

Is there anyway to do this?

NOTE: I know about "[NonParallelizable]" I just don't know how to apply it since I'm using specflow.

like image 754
Dayan54 Avatar asked Nov 01 '25 14:11

Dayan54


1 Answers

You should be able to decorate the specific tests that you want to exclude from parallel runs with either [NonParallelizable] or the equivalent [Parallelizable(ParallelScope.None)].

See the docs

like image 133
JeffC Avatar answered Nov 03 '25 05:11

JeffC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!