-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testmon doesn't track sources in venv directory #206
Comments
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 |
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!
The text was updated successfully, but these errors were encountered: