Skip to content
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

Rename long option for -s #107

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def print_progress(self):
@click.option('--tests-dir')
@click.option('-m', '--test-time-multiplier', default=2.0, type=float)
@click.option('-b', '--test-time-base', default=0.0, type=float)
@click.option('-s', '--swallow-output', help='turn off output capture', is_flag=True)
@click.option('-s', '--no-capture', help='turn off output capture', is_flag=True)
@click.option('--dict-synonyms')
@click.option('--cache-only', is_flag=True, default=False)
@click.option('--version', is_flag=True, default=False)
Expand All @@ -220,7 +220,7 @@ def print_progress(self):
)
def climain(command, argument, paths_to_mutate, backup, runner, tests_dir,
test_time_multiplier, test_time_base,
swallow_output, use_coverage, dict_synonyms, cache_only, version,
no_capture, use_coverage, dict_synonyms, cache_only, version,
suspicious_policy, untested_policy, pre_mutation, post_mutation,
use_patch_file):
"""
Expand All @@ -242,14 +242,14 @@ def climain(command, argument, paths_to_mutate, backup, runner, tests_dir,
test_time_multiplier = 0.0
sys.exit(main(command, argument, paths_to_mutate, backup, runner,
tests_dir, test_time_multiplier, test_time_base,
swallow_output, use_coverage, dict_synonyms, cache_only,
no_capture, use_coverage, dict_synonyms, cache_only,
version, suspicious_policy, untested_policy, pre_mutation,
post_mutation, use_patch_file))


def main(command, argument, paths_to_mutate, backup, runner, tests_dir,
test_time_multiplier, test_time_base,
swallow_output, use_coverage, dict_synonyms, cache_only, version,
no_capture, use_coverage, dict_synonyms, cache_only, version,
suspicious_policy, untested_policy, pre_mutation, post_mutation,
use_patch_file):
"""return exit code, after performing an mutation test run.
Expand Down Expand Up @@ -336,7 +336,7 @@ def main(command, argument, paths_to_mutate, backup, runner, tests_dir,
🙁 Survived. This means your tests needs to be expanded.
""")
baseline_time_elapsed = time_test_suite(
swallow_output=not swallow_output,
swallow_output=not no_capture,
test_command=runner,
using_testmon=using_testmon
)
Expand Down Expand Up @@ -394,7 +394,7 @@ def _exclude(context):
print()
print('2. Checking mutants')
config = Config(
swallow_output=not swallow_output,
swallow_output=not no_capture,
test_command=runner,
exclude_callback=_exclude,
baseline_time_elapsed=baseline_time_elapsed,
Expand Down Expand Up @@ -646,7 +646,7 @@ def time_test_suite(swallow_output, test_command, using_testmon):
"""Execute a test suite specified by ``test_command`` and record
the time it took to execute the test suite as a floating point number

:param swallow_output: if :obj:`True` test stdout will be not be printed
:param swallow_output: if :obj:`True` test stdout will not be printed
:type swallow_output: bool

:param test_command: command to spawn the testing subprocess
Expand Down