Is there a way to rerun all Pytest tests when a file is saved?

Viewed 21

Is there a way to automatically re-run all tests with Pytest if a file is saved in the project?

This is essentially Jest's --watch and --watchAll flags, which respectively reruns the designated test file and all test files whenever any files are saved.

Does PyTest have a similar function or flag?

0 Answers
Related