mocha-parallel / mocha-parallel-tests

Parallel test runner for mocha tests. Looking for maintainer.
MIT License
199 stars 45 forks source link

Empty coverage with nyc using mocha-parallel-tests 2.2.2 but working with 2.1.0 #271

Closed yon-cuadrado closed 4 years ago

yon-cuadrado commented 4 years ago

Hello

When I try to obtain the coverage of the tests with the version 2.2.2 of mocha-parallel-tests and nyc I get 0% cover for everything but the branch in one of the files, but I use the version 2.1.0 I get the correct coverage. To get the coverage I use the following scripts: "test": "NODE_ENV=test mocha-parallel-tests -r ts-node/register --recursive test/**/*-spec.* --timeout 50000 --slow 1000 ", "test-cover": "nyc --clean npm run test",

I have created the following repository: feature-collector where this behavior can be reproduced.

Regards

rarms-aais commented 4 years ago

We are experiencing this also. with any 2.2.x of mocha-parallel-test and nyc v15.0.0

yon-cuadrado commented 4 years ago

Now It is working with the latest versions of nyc and mocha-parallel-tests. I have updated the repository. I am going to close this issue.