I have a large-ish and rapidly growing body of karate tests and use the parallel execution to speed up processing, which basically works great in different configurations:
- Normal parallel execution (vast majority of tests)
- Sequential execution of Scenarios within a Feature (
parallel=false
) for very few special cases - Completely sequential execution (via separate single-threaded runner, triggered by custom
@sequential
tag) for things that modify configuration settings, global lookups etc
There's however also a parameterized (Scenario Outline) feature for the basic functionality of many types of global lookups. Currently it runs in the "completely sequential" mode because it affects other tests. But actually the scenarios inside that feature could be executed in parallel (they don't affect each other) as long as the Feature as a whole is executed in isolation (because the tests do affect other Features).
So - is there a way to implement "sequential Features with parallel Scenarios" execution? I admit that this is likely a niche case, but it would speed up tests execution quite a bit in my case.