Skip to content

Commit

Permalink
bugfix: mutmut should pick up the config before running the original …
Browse files Browse the repository at this point in the history
…tests. That allows to specify test suits you want to run
  • Loading branch information
atmay committed Feb 13, 2024
1 parent aea85c0 commit b35712c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,16 @@ def split_paths(paths):
except ImportError:
runner = 'python -m unittest'

if hasattr(mutmut_config, 'init'):
mutmut_config.init()

baseline_time_elapsed = time_test_suite(
swallow_output=not swallow_output,
test_command=runner,
using_testmon=using_testmon,
current_hash_of_tests=current_hash_of_tests,
no_progress=no_progress,
)

if hasattr(mutmut_config, 'init'):
mutmut_config.init()
)

if using_testmon:
copy('.testmondata', '.testmondata-initial')
Expand Down

0 comments on commit b35712c

Please sign in to comment.