Improve corpus printer

* Prints the mutation subject before mutations happen, associates
  failures to subject implicitly.
This commit is contained in:
Markus Schirp 2014-04-07 12:52:15 +00:00
parent ff6b1034e9
commit 08a0f1c2b2

View file

@ -21,6 +21,7 @@ describe 'Mutant on ruby corpus' do
def verify
checkout
Pathname.glob(repo_path.join('**/*.rb')).sort.each do |path|
puts "Generating mutations for: #{path.to_s}"
node = Parser::CurrentRuby.parse(path.read)
count = 0
Mutant::Mutator::Node.each(node) do |mutant|
@ -29,7 +30,7 @@ describe 'Mutant on ruby corpus' do
puts count
end
end
puts "#{count} mutations for: #{path.to_s}"
puts "Mutations: #{count}"
end
self
end