FACT_core icon indicating copy to clipboard operation
FACT_core copied to clipboard

Allow pytest to be executed simultaneously

Open maringuu opened this issue 2 years ago • 1 comments

Since the tests take quite a bit to execute, especially integration and acceptance tests it would be great to speedup by parallel execution.

There are several blockers to for this. The one I remember is database access. Tables are modified, dropped etc by fixtures and tests and this obviously causes errors.

maringuu avatar Jan 05 '23 08:01 maringuu

I don't think this could work for the integration and acceptance tests when stuff is written to the DB, Redis, etc. because this could lead to side effects (unless there are some workarounds like e.g. using multiple test DBs but it's probably not worth the effort).

The unit tests on the other hand should work (at least in theory). I don't know if it's worth the effort here as well when the unit tests need about 45 seconds to run without parallelism.

jstucke avatar Jan 06 '23 10:01 jstucke