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
Now running pytest --testmon test_mymodule.py does not rerun test_module() when the value of MyClass.FOO or foo_bar is changed. Even worse, FOO can be completely removed, e.g.
classMyClass:
pass
without triggering a re-run.
When running pytest --cov manually, there seems to be a trace
The text was updated successfully, but these errors were encountered:
janbernloehr
changed the title
Changes to class variables are ignored
Changes to global / class variables are ignored
Aug 17, 2022
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.
tarpas
changed the title
Changes to global / class variables are ignored
Changes to global / class variables are ignored (if no method of their module is executed)
Oct 26, 2022
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 traceThe text was updated successfully, but these errors were encountered: