Open janbernloehr opened 1 year ago
Unfortunately this is quite a fundamental limitation. It's not impossible to fix but hard.
It's also worth mentioning that if there is at least one function or method from mymodule used in test_mymodule then any change in mymodule is taken into account.
This issue is unfortunately still present with testmon 2.0.9
Suppose you have the following files
Now running
pytest --testmon test_mymodule.py
does not reruntest_module()
when the value ofMyClass.FOO
orfoo_bar
is changed. Even worse,FOO
can be completely removed, e.g.without triggering a re-run.
When running
pytest --cov
manually, there seems to be a trace