You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since redisdb is a function-scoped fixture, I have to scope all my other fixtures using app or client as function which really slows down my tests.
I don't want my xdist workers to share anything, on the contrary. I just want the same redis instance for the whole session, for the sake of efficiency and speed (takes about 8 minutes to run 900 tests on github actions with 2 workers, and 2 minutes on 12 workers on my laptop)
The text was updated successfully, but these errors were encountered:
I would like to be able to ask pytest-redis to setup a redis instance once per session so I can easily distribute it why pytest-xdist.
Why ? Well it works perfectly right now, but it's hella slow
Since
redisdb
is a function-scoped fixture, I have to scope all my other fixtures usingapp
orclient
asfunction
which really slows down my tests.I don't want my
xdist
workers to share anything, on the contrary. I just want the same redis instance for the whole session, for the sake of efficiency and speed (takes about 8 minutes to run 900 tests on github actions with 2 workers, and 2 minutes on 12 workers on my laptop)The text was updated successfully, but these errors were encountered: