Adjust flay score
This commit is contained in:
parent
7040a30b35
commit
328a926500
3 changed files with 15 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -3,6 +3,7 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gem 'mutant', path: '.'
|
||||
gem 'morpher', path: '../morpher'
|
||||
|
||||
gemspec name: 'mutant'
|
||||
|
||||
|
|
13
Rakefile
13
Rakefile
|
@ -15,3 +15,16 @@ if ENV['TRAVIS']
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Generate mutation operator listing'
|
||||
task :list do
|
||||
require 'mutant'
|
||||
# TODO: Add a nice public interface
|
||||
registry = Mutant::Mutator::Registry.send(:registry)
|
||||
registry.keys.select do |key|
|
||||
key.is_a?(Symbol)
|
||||
end.sort.each do |type|
|
||||
mutator = registry.fetch(type)
|
||||
puts '%-18s: %s' % [type, mutator.name.sub(/\AMutant::Mutator::Node::/, '')]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
threshold: 18
|
||||
total_score: 848
|
||||
total_score: 849
|
||||
|
|
Loading…
Add table
Reference in a new issue