mocha-parallel-tests icon indicating copy to clipboard operation
mocha-parallel-tests copied to clipboard

Passing variables

Open robdaems opened this issue 6 years ago • 0 comments

Hello,

Since every test runs in its own process I cannot access the main context (this.suite.ctx) anymore.

Previously in mocha, I've added my parameters to this.suite.ctx which were available in every test, but with mocha-parallel-tests it seems that this context is empty in the tests.

I want to pass dynamic variables from my main file (where I start the different processes via new) to my tests.

Br, Rob

robdaems avatar Jan 08 '19 14:01 robdaems