How to converge test coverage when splitting tests with `--partitions` and `MIX_TEST_PARTITION`?

Hello,

I attempted to split the test suite of a large Elixir project to improve execution speed. However, I observed that the test coverage percentage dropped, which is expected since each partition only runs a subset of the tests.

Is there a way to aggregate the coverage results into a unified report? I could not find any relevant options supported by mix, and simply summing the percentages from each partition is not viable due to overlaps in the code covered by different partitions.

Thanks!

1 Like

I explained how we are doing this using semaphoreci:

1 Like

Wow, thanks! I will see if I can get it to work with Gitlab CI

1 Like

ok, let us know if you manage to make it work!