Pytest parallelization timings

Maybe I can save someone time in the future with storing test results / getting parallelization rebalancing working with pytest. Newer versions of pytest don’t include file in its output, failing to split by timings and saying Error autodetecting timing type, falling back to weighting by name.

You need to override the version, either in pytest.ini or directly with invocation arg: --override-ini junit_family=xunit1

Imo example on this page should include that flag if someone from CircleCI can update it. Collecting Test Metadata - CircleCI

Credit to stackoverflow post: python - Pytest junit-xml report doesn't have "file" field - Stack Overflow