mocha-parallel-tests
mocha-parallel-tests copied to clipboard
Bug? Feature? Support it.only and describe.only like mocha does
When i run my tests using mocha-parallel-tests (as opposed to mocha) all tests run regardless of tests or describes with .only EG it.only('test name', testDefinition) or describe.only.... These are supported methods by mocha: https://mochajs.org/#exclusive-tests.
Thanks
I have meet the same problem.Hope it works better in the future.
Hey @trp956s, thanks for posting this issue. The problem, however, is a bit controversial: only-suites and cases are okay if they're happening in one thread. mocha-parallel-tests runs each file in a separate process and each process doesn't know what's happening in other processes. We can probably think about that but I'm not sure it can work nicely with --delay option. If you have any free time to jump onto the code and help me here, that would be great. Otherwise, I'm planning to come back to this task in a couple of weeks, unfortunately.