From 08a0f1c2b2972b88c4d6b94af3b0a3e48cd833bb Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 7 Apr 2014 12:52:15 +0000 Subject: [PATCH] Improve corpus printer * Prints the mutation subject before mutations happen, associates failures to subject implicitly. --- spec/integration/mutant/corpus_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/integration/mutant/corpus_spec.rb b/spec/integration/mutant/corpus_spec.rb index c75b1fd9..6dedcea2 100644 --- a/spec/integration/mutant/corpus_spec.rb +++ b/spec/integration/mutant/corpus_spec.rb @@ -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