Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 13, 2015
1 parent 4db7c7b commit 25d450c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions what_to_run.rb
Expand Up @@ -50,17 +50,16 @@ 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

before, after = args.last(2)

# calculate the per test coverage
delta = diff before, after
p delta

delta.each_pair do |file, lines|
file_map = cov_map[file]
Expand All @@ -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
Expand Down

0 comments on commit 25d450c

Please sign in to comment.