test-reporter icon indicating copy to clipboard operation
test-reporter copied to clipboard

Circle parallel test: expected 4 parts, received 1 parts

Open efueger opened this issue 6 years ago • 5 comments

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

  • OSS user with CircleCI.
  • When running parallel tests, he's getting:
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

efueger avatar Feb 04 '19 19:02 efueger

I'm experiencing the same thing

kylemellander avatar Mar 14 '19 17:03 kylemellander

Wow much crickets.

sanjitsaluja avatar Mar 14 '19 18:03 sanjitsaluja

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.

FlorinPopaCodes avatar Mar 17 '19 17:03 FlorinPopaCodes

Hi @FlorinPopaCodes - thanks for pointing that out!

  • Can you post your config.yml?

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

efueger avatar Mar 19 '19 16:03 efueger

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

FlorinPopaCodes avatar Mar 19 '19 19:03 FlorinPopaCodes