Pytest: Is there a way to run collected tests from a previous session

Created on 29 Jul 2019  路  3Comments  路  Source: pytest-dev/pytest

Hello,
I need to accelerate running of tests
One of the places I'd like to save time-is the collection time
Because in my scenario it will always same collection - is there a way to prevent collection again and again, and just to say to pytest to run collected items from the previous run

Thank you, Nadav

needs information question

All 3 comments

collection cannot be stored/retrieved atm, however the number of files that are checked can be altered

right now its not clear what your exact use-case is, also its not clear what your collection time is and if/why it is high

Check out https://github.com/tarpas/pytest-testmon and/or https://github.com/pytest-dev/pytest-incremental.
Thank you blueyed, this is exactly what i search

Was this page helpful?
0 / 5 - 0 ratings