Testing and coverage of python code using split tests


I’m trying to run tests in parallel and also collect coverage. I tried to use GitHub - ryanwilsonperkin/pytest-circleci-parallelized: Parallelize pytest across CircleCI workers. but the coverage is totally wrong comparing to what I get without using parallel mode (68% vs 94%). I found that this module just use circleci tests split command to do so and I’d like to know if someone was able to get the right coverage using pytest and splitting tests.


1 Like

Can you share your config file? it would give more insight on how you are running your tests.