Improve corpus printer
* Prints the mutation subject before mutations happen, associates failures to subject implicitly.
This commit is contained in:
parent
ff6b1034e9
commit
08a0f1c2b2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue