-
Notifications
You must be signed in to change notification settings - Fork 114
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
BadTestExecutionCommandsException due to --import-mode=append #345
Comments
I don't think we can. For mutmut to work the That those files have the same same shouldn't be a problem, but maybe you need to run mutmut separately for each? How do you run tests normally? |
Normally tests are run one of two ways. Either through the VS Code test discovery or through a script we have that runs coverage as well and works in our CI Pipeline. The following is how we setup pytest to run
Running mutmut just in our common folder, which does not have any duplicate names, does seem to avoid the issue, presuming the following is unconnected.
|
I have an issue trying to run mutmut, and when running with debug = True, I get the following output:
Because this repo has multiple services, which each have a service_test.py. And per the docs for pytest, with prepend and append, all your test files must have unique names. https://docs.pytest.org/en/7.1.x/explanation/pythonpath.html
Can we just either let mutmut pick up the import mode from the pytest.ini or default it to importlib instead of append?
The text was updated successfully, but these errors were encountered: