python-discord / api

A FastAPI-based service that allows our services to communicatie with our database.
MIT License
10 stars 1 forks source link

Implementing test parallelisation #31

Open doublevcodes opened 2 years ago

doublevcodes commented 2 years ago

What we want

We would like to consider parallelising the execution of tests.

How do we do it

This can be done with pytest-xdist

What problems do we face

D0rs4n commented 2 years ago

My proposal is to just simply create test databases using worker ids (see the docs) I have already added the logic to my PR that could be modified. (We're talking about a fairly easy modification)