excoveralls icon indicating copy to clipboard operation
excoveralls copied to clipboard

How to collect coverage using --partitions option in circle CI?

Open ibarrae opened this issue 4 years ago • 2 comments

Hi and thanks for the library :tada:

I have been trying to run tests in parallel like the following in circle CI:

MIX_TEST_PARTITION=1 mix coveralls --parallel --partitions 2 & MIX_TEST_PARTITION=2 mix coveralls --parallel --partitions 2 & await

But when pushing the results it only shows the one that ended up last. Is there any way to do "merge" both files correctly or is there's something that I could change to do so?

ibarrae avatar Feb 11 '21 20:02 ibarrae

I'm currently stuck trying to partitioning tests with Github action. I think it's currently not possible to split and combine ExCoveralls result right now.

I'm thinking about doing the same with Erlang cover module that they support the partitioning test by resulting the test result to n.coverdata files where n is the partition. I think it's possible to do the same with ExCoveralls since it uses Erlang cover under the hood if I understand correctly.

zentetsukenz avatar Mar 05 '21 04:03 zentetsukenz

Would be awesome if this supported the mix test.coverage command to combine the outputs from multiple partitions.

jared-mackey avatar Mar 18 '22 00:03 jared-mackey