-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
coverage report not produced with --passWithNoTests flag and no tests #9392
Comments
Is this a bug in istanbul? @coreyfarrell, seems like a report should be generated even if it's empty? A text report is generated, I'd think an lcov report would also be? |
If I run the following commands from an empty directory: npm init -y
npm i -D nyc
mkdir .nyc_output
npx nyc report -r lcovonly This creates a 0 byte I did some quick experimentation with |
Right, so in theory coveralls should accept an empty file? |
Probably. At minimum it shouldn't say "parse error" it should detect the special case of an empty file. Not sure if it should report to the coveralls server in this case, I'd think yes so that coveralls site can report that no coverage was received rather than just being unaware of that CI run. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
馃悰 Bug Report
We use Coveralls to centralize our test coverage on all our services. New services start with no tests and we use the
--passWithNoTests
flag for our coverage report step in CircleCI. Which looks like thisWe've noticed Coveralls failing because the
./coverage/lcov.info
doesn't get created and coveralls fails to parseTo Reproduce
Steps to reproduce the behavior:
Run the following
No
/coverage/lcov.info
is produced.However, with a dummy/stub test it does work and produces the file.
Expected behavior
A valid coverage file would be produced with no tests if the
--passWithNoTests
flag is set.The text was updated successfully, but these errors were encountered: