Closed aneilbaboo closed 6 years ago
I, too, need help setting up CC test coverage with Travis and NodeJS.
Hey @aneilbaboo and @wbhob. To help troubleshoot, could you each open up a support ticket here. In the ticket, can you please include:
If you're running your tests in single builds, use after-build --debug.
For tests run in parallel, please use both format-coverage --debug
and upload-coverage --debug
.
Sorry about the extra work here, but this will help expedite the troubleshooting process. I'll be standing by to help further. Thanks!
I just saw this but sent a support request. Can you just shoot me an empty response so I can offer the information I missed? Thanks!
Thanks, @davehenton - I just created a ticket.
Hi @aneilbaboo - just opened a PR with a solution that should work.
@efueger - Moving the cc_test_reporter_id to the docker step was the key. I had tried the other changes before that, but that was the missing piece. Thanks so much.
On CircleCI, after producing clover.xml using nyc, I get "Error: could not find coverage info for source files". This is similar to https://github.com/codeclimate/test-reporter/issues/259, but none of the fixes mentioned there work for me.
I ssh'ed into CircleCI and verified that my test script (using nyc) is producing
coverage/clover.xml
, which seems to have valid contents (I can post, if that's helpful).I tried invoking cc-test-reporter many different ways from the ssh shell in CircleCI, to no effect. Inspecting the response from cc-test-reporter, I can see that it has identified the correct directory where my clover.xml is stored, but it is still giving me this error:
Here are the relevant parts of my package.json and .circleci/config.yml. I tried many configurations. In this one, I'm cd'ing into the coverage folder because cc-test-reporter seems to be ignoring the
--prefix
argument..circleci/config.yml
package.json