Closed michamos closed 3 years ago
I've been playing with this idea, but didn't know about pkg_resources.working_set. Very good suggestions, thanks!
All: how usable is this if there is no warning why everything is re-executed? @michamos
Couldn't you add a message in the plugin info, where you currently display the status of test collection, selection, etc.?
Sure, I'll work on that.
First let me thank you for this great project. It works very well and is a huge productivity boost when having a large and slow testsuite.
One small issue I have is dependency management. When external dependencies change, it would be good to re-run all tests, as they are not tracked. Would it be possible to supplement
pytest-testmon
with a feature allowing it to detect if dependencies have changed, and if so re-run all tests?Edit: after some investigation, this shouldn't be too hard by using
pkg_resources
and storing a normalized output ofpkg_resources.working_set
or even its hash (adapted from https://stackoverflow.com/a/65040585):