-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage is returning all 0s #329
Comments
observations: locally, |
I figured it out! Comparing https://travis-ci.org/alangpierce/sucrase/jobs/448013956 and https://travis-ci.org/alangpierce/sucrase/jobs/450701078 , I noticed that the only change is in the yarn version, and indeed I can reproduce the failure on latest yarn. Looks like yarn changed something so that |
Fixes #329 * Rather than using `nyc` to wrap `yarn` to wrap `mocha`, we now just have `nyc` wrap `mocha` directly. This fixes a regression where a yarn upgrade broken coverage. * We now run node 11 by default, with extra builds for node 8 and 10. * source-map-support didn't seem to be doing anything, so I removed it. * I made plain `yarn test` no longer run coverage. It's now opt-in as `yarn run-with-coverage`. This means that builds that run tests but don't report coverage won't be needlessly computing coverage. * I got rid of the `no-unused-variable` TSLint rule, which has a deprecation warning now.
Fixes #329 * Rather than using `nyc` to wrap `yarn` to wrap `mocha`, we now just have `nyc` wrap `mocha` directly. This fixes a regression where a yarn upgrade broken coverage. * We now run node 11 by default, with extra builds for node 8 and 10. * source-map-support didn't seem to be doing anything, so I removed it. * I made plain `yarn test` no longer run coverage. It's now opt-in as `yarn run-with-coverage`. This means that builds that run tests but don't report coverage won't be needlessly computing coverage. * I got rid of the `no-unused-variable` TSLint rule, which has a deprecation warning now.
Fixes #329 * Rather than using `nyc` to wrap `yarn` to wrap `mocha`, we now just have `nyc` wrap `mocha` directly. This fixes a regression where a yarn upgrade broken coverage. * source-map-support didn't seem to be doing anything, so I removed it. * I made plain `yarn test` no longer run coverage. It's now opt-in as `yarn run-with-coverage`. This means that builds that run tests but don't report coverage won't be needlessly computing coverage. * I got rid of the `no-unused-variable` TSLint rule, which has a deprecation warning now. * Some scripts weren't setting exit code properly, so this fixes that.
Fixes #329 * Rather than using `nyc` to wrap `yarn` to wrap `mocha`, we now just have `nyc` wrap `mocha` directly. This fixes a regression where a yarn upgrade broken coverage. * source-map-support didn't seem to be doing anything, so I removed it. * I made plain `yarn test` no longer run coverage. It's now opt-in as `yarn run-with-coverage`. This means that builds that run tests but don't report coverage won't be needlessly computing coverage. * I got rid of the `no-unused-variable` TSLint rule, which has a deprecation warning now. * Some scripts weren't setting exit code properly, so this fixes that.
See the builds for these PRs: #327 #328
Looks like
nyc
is correctly running and producing a report where all files have 0 lines covered. The most recent master build and PR build worked fine, but now it appears broken even with only a README change.cc @raylu in case you feel like taking a look. 😄
The text was updated successfully, but these errors were encountered: