Open emavgl opened 1 year ago
Hi @emavgl, thanks for your effort to provide example that didn't work for you! You are right this is not expected behavior of testmon - it definitely should recognize changes you described. And it does in my environment. We will investigate deeper and maybe will come back for some additional info.
Hi @pokopt, thank you for checking my issue. In case you need something, I would be happy to help you with the investigation
Hi @emavgl. We are able to reproduce this behavior if 'tests' directory is placed inside your virtual environment directory. Is it your case as well? Is your virtual environment created in /Users/emv/repos/test-testmon
? If so, there is workaround to create virtual environment in separate directory (e.g. /Users/emv/repos/test-testmon/venv
) and testmon should run just fine. However we will try to provide real fix for this situation.
Great catch! It is indeed my case. I tried with the workaround and it now works as expected. I think it is a bug that needs to be addressed, even if in my case, it is not that problematic. I will continue with other investigations then :)
Hi everyone. I am testing testmon for the project in my company and after having some issues, I am trying to create a simple use case to help identifying the problem and maybe also with the debugging.
I started creating a simple code:
I then run testmon once
and tests are collected and executed fine.
Then, I do a small change in the MyCode class.
and this time no tests is running.
What I expect, is that since the code of the method
add
has changed. Also the testtest_mock
has to run again. Am I right?Same thing, if I change the test only, maybe changing the assertion, like this:
test_mock
should run again, but it does not.Am I missing something? Thank you!