Kill alive mutations in Mutant::CLI
This commit is contained in:
parent
87284a368e
commit
ccb9c14af7
2 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
threshold: 18
|
||||
total_score: 1215
|
||||
total_score: 1218
|
||||
|
|
|
@ -66,13 +66,13 @@ module Mutant
|
|||
opts = OptionParser.new do |builder|
|
||||
builder.banner = 'usage: mutant [options] MATCH_EXPRESSION ...'
|
||||
%w[add_environment_options add_mutation_options add_filter_options add_debug_options].each do |name|
|
||||
send(name, builder)
|
||||
__send__(name, builder)
|
||||
end
|
||||
end
|
||||
|
||||
parse_match_expressions(opts.parse!(arguments))
|
||||
rescue OptionParser::ParseError => error
|
||||
raise(Error, error.message, error.backtrace)
|
||||
raise(Error, error)
|
||||
end
|
||||
|
||||
# Parse matchers
|
||||
|
@ -140,7 +140,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def add_mutation_options(opts)
|
||||
opts.separator(EMPTY_STRING)
|
||||
opts.separator(nil)
|
||||
opts.separator('Options:')
|
||||
|
||||
opts.on('--score COVERAGE', 'Fail unless COVERAGE is not reached exactly') do |coverage|
|
||||
|
@ -179,7 +179,7 @@ module Mutant
|
|||
update(fail_fast: true)
|
||||
end
|
||||
opts.on('--version', 'Print mutants version') do
|
||||
puts("mutant-#{Mutant::VERSION}")
|
||||
puts("mutant-#{VERSION}")
|
||||
Kernel.exit(EXIT_SUCCESS)
|
||||
end
|
||||
opts.on('-d', '--debug', 'Enable debugging output') do
|
||||
|
|
Loading…
Add table
Reference in a new issue