I have tests in different classes (Page Object pattern), that may interfere with each other when run together in parallel (they are *not* unit tests). For example, there are classes: AddCustomerFormTests
and EditCustomerFormTests
, that test adding customers and changing customer info, respectively. The most logical (and readable) solution seems to be to assign the fixtures to different categories and avoid running tests from the same category together, however I can't find a way to do it.
Basically, I'm looking for an equivalent of [Parallelizable(ParallelScope.Fixtures)]
that works with categories rather than classes. I don't want to merge classes together cause that would break Page Object pattern, as well as SRP.