From 25d450c97db842ce822eddb46fe9c90c9a151a11 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 13 Feb 2015 14:42:27 -0800 Subject: [PATCH] more fixes --- spec/{wow_spec.rb => whatever_spec.rb} | 0 what_to_run.rb | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename spec/{wow_spec.rb => whatever_spec.rb} (100%) diff --git a/spec/wow_spec.rb b/spec/whatever_spec.rb similarity index 100% rename from spec/wow_spec.rb rename to spec/whatever_spec.rb diff --git a/what_to_run.rb b/what_to_run.rb index 90eae6a..5de2f21 100644 --- a/what_to_run.rb +++ b/what_to_run.rb @@ -50,9 +50,9 @@ def diff before, after File.open('run_log.json') do |f| # Read in the coverage info JSON.parse(f.read).each do |args| - if args.length == 4 + if args.length == 4 # for Minitest desc = args.first(2).join('#') - else + else # for RSpec desc = args.first end @@ -60,7 +60,6 @@ def diff before, after # calculate the per test coverage delta = diff before, after - p delta delta.each_pair do |file, lines| file_map = cov_map[file] @@ -77,6 +76,7 @@ def diff before, after end end +puts "you need to run" lines_to_run.each do |file, line| cov_map[File.expand_path(file)][line].each do |desc| puts desc