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

Bug? Feature? Support it.only and describe.only like mocha does

Open trp956s opened this issue 7 years ago • 2 comments

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

trp956s avatar Jul 24 '18 20:07 trp956s

I have meet the same problem.Hope it works better in the future.

dylanz666 avatar Jul 27 '18 01:07 dylanz666

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.

1999 avatar Jul 28 '18 02:07 1999