Closed pwmcintyre closed 5 months ago
Gauge's default behavior for Parallelisation is Multi Process. It launches multiple instances of the runner, so the state between these processes won't be shared. Gauge does support Threading-based Parallelisation, but that is only supported for the Languages like Java or CSharp (dotnet). Since NodeJs is only single-threaded, it won't be easy to achieve threading-based parallelization in this plugin. Al tough I'll try to spend some time and see if there are any work arounds.
@BugDiver NodeJS doesn't do parallelism, but it is great at concurrency.
I would really appreciate a "concurrent" option, to allow N>1 scenarios to run at the same time, which some might argue is the intent of the "parallel" option.
Specs can be executed in parallel to run the tests faster.
Describe the bug
when using
--parallel
flag, gauge seems to spawn multiple completely isolated processes.where normally i might do some once-off
BeforeSuite
setup; this is no longer possible. Furthermore, there is no mechanism of sharing information between scenarios.is there a way to share state between scenarios while using
--parallel
?To Reproduce
1 — tests
tests/steps.foo.ts
2 — 2 specs:
specs/foo.1.md
specs/foo.2.md
Output without parallel:
output with parallel
Expected behavior
both parallel and non-parallel to share the same
@BeforeSuite
and SuiteDataStoreI guess i was expecting regular NodeJS style single-threaded concurrency? 🤷
Desktop (please complete the following information):
Additional context