Skip to content

Commit

Permalink
Rootdir setting for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Oct 27, 2024
1 parent b608ce7 commit 3d34129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ def new_tests(self):
class PytestRunner(TestRunner):
def execute_pytest(self, params, **kwargs):
import pytest
params += ['--rootdir=.']
if mutmut.config.debug:
params = ['-vv'] + params
print('python -m pytest ', ' '.join(params))
Expand Down

0 comments on commit 3d34129

Please sign in to comment.