Skip to content

Commit

Permalink
Fixed heckle to work slightly better - some mutations infinite-loop so
Browse files Browse the repository at this point in the history
it's not as useful
  • Loading branch information
anaisbetts committed Dec 29, 2007
1 parent ff2b8a7 commit 38ae5c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Rakefile
Expand Up @@ -61,15 +61,16 @@ task :heckle do |t|
Dir.glob('lib/**/*.rb').each do |path|
File.open(path) do |f|
class_list += f.readlines.grep(/^class /) {|x| x.gsub(/class ([a-zA-Z]*).*$/, '\1') }
class_list.delete_if {|x| x == ''}
end
end

class_list.each do |x|
puts "Heckling #{x}"
sh "heckle -f #{x}"
STDERR.puts "Heckling #{x}"
system("heckle -f #{x}")
end

#sh "echo cat " + Dir.glob("lib/**/*.rb").join(' ') + " | grep '^class ' | grep -v 'class <<' | sed -e 's/\\1/g' | xargs -I {} heckle -f"
# sh "echo cat " + Dir.glob("lib/**/*.rb").join(' ') + " | grep '^class ' | grep -v 'class <<' | sed -e 's/\\1/g' | xargs -I {} heckle -f"
end

desc "Run code coverage"
Expand Down

0 comments on commit 38ae5c9

Please sign in to comment.