openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.
https://openfisca.org
GNU Affero General Public License v3.0
165 stars 74 forks source link

Introduce a way to run tests in parallel #1171

Closed bonjourmauko closed 1 year ago

bonjourmauko commented 1 year ago

Fixes #1025

Technical changes

bonjourmauko commented 1 year ago

In #1025, @benoit-cty mentioned issues with Xdist that were likely to come up with pytest-parallel. Do we not have them here?

The suggested library is not maintained: kevlened/pytest-parallel#104. Our stack is already suffering from outdated dependencies and I don't find it wise to add to this.

What is the performance gain we get from this implementation on some large models?

Fair enough. Performance is only remarkable for county packages like France. Implementing xdist requires changes to the test command. I propose we deal with those, needed nonetheless to upgrade to newest pytest.