codeclimate / test-reporter

Code Climate Test Reporter
MIT License
156 stars 76 forks source link

Circle parallel test: expected 4 parts, received 1 parts #386

Open efueger opened 5 years ago

efueger commented 5 years ago

Repo: https://github.com/bikeindex/bike_index

Error: expected 4 parts, received 1 parts
Usage:
cc-test-reporter sum-coverage [flags]

https://circleci.com/gh/bikeindex/bike_index/29

image

To stop it from erroring, he updated his circle config file to specify 1, but he still needs to be able to report on all expected files.

https://github.com/bikeindex/bike_index/blob/master/.circleci/config.yml
kylemellander commented 5 years ago

I'm experiencing the same thing

sanjitsaluja commented 5 years ago

Wow much crickets.

FlorinPopaCodes commented 5 years ago

You're experiencing this because the documentation here is incomplete.

I got this working by using persist_to_workspace to persist the codeclimate reports and then I've moved the deploy step into a new workflow that's able to join and upload all reports to codeclimate.

efueger commented 5 years ago

Hi @FlorinPopaCodes - thanks for pointing that out!

I'd love to update our examples to help other users. 👌

FlorinPopaCodes commented 5 years ago

This should help. https://github.com/FlorinPopaCodes/bike_index/commit/bc2b525d35782de5fb7609a5da2469466f38917a I tested this and it runs and uploads as expected.