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

Using global / support --global option

Open DblK opened this issue 7 years ago • 2 comments

I have read the document about the limitations (https://github.com/yandex/mocha-parallel-tests/wiki/Limitations) and I wanted to know if I use somewhere global.sinon, is it normal that my tests are not working and telling me sinon is not defined.

Is there a way to make it work? I use this so avoid, declaring sinon in each spec file.

Thank for your reply.

DblK avatar Jul 13 '18 16:07 DblK

Hey @DblK Well, it depends on how and where you're using it. Do you have a --global or something like a top-level before script where you declare global.sinon?

1999 avatar Aug 08 '18 23:08 1999

If you were following this article to set up your mocha pipeline, be advised that you'll need to import / require the boostrapping file from every root-level test suite you have (instead of simply calling it before the -recursive option)

soryy708 avatar Apr 29 '19 11:04 soryy708