-
-
Save RobDoan/1804261 to your computer and use it in GitHub Desktop.
Revisions
-
Alexander Dreher revised this gist
Nov 10, 2010 . 1 changed file with 2 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,12 +19,9 @@ namespace :rcov do end RSpec::Core::RakeTask.new(:rspec_run) do |t| t.pattern = 'spec/**/*_spec.rb' t.rcov = true t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/} end desc "Run both specs and features to generate aggregated coverage" -
Alexander Dreher renamed this gist
Nov 10, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,11 +19,11 @@ namespace :rcov do end RSpec::Core::RakeTask.new(:rspec_run) do |t| t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""] t.pattern = 'spec/**/*_spec.rb' t.rcov = true t.rcov_opts = lambda do IO.readlines("#{Rails.root}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten end end -
Alexander Dreher renamed this gist
Nov 10, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Alexander Dreher renamed this gist
Nov 10, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Alexander Dreher renamed this gist
Nov 10, 2010 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # Forked to get it working with Rails 3 and RSpec 2 # # From http://github.com/jaymcgavren # # Save this as rcov.rake in lib/tasks and use rcov:all => @@ -7,7 +9,7 @@ # to get non-aggregated coverage reports for rspec or cucumber separately require 'cucumber/rake/task' require "rspec/core/rake_task" namespace :rcov do Cucumber::Rake::Task.new(:cucumber_run) do |t| @@ -16,9 +18,9 @@ t.rcov_opts << %[-o "coverage"] end RSpec::Core::RakeTask.new(:rspec_run) do |t| t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] t.pattern = 'spec/**/*_spec.rb' t.rcov = true t.rcov_opts = lambda do IO.readlines("#{RAILS_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten -
mbulat revised this gist
Nov 10, 2009 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require 'cucumber/rake/task' require 'spec/rake/spectask' namespace :rcov do Cucumber::Rake::Task.new(:cucumber_run) do |t| t.rcov = true -
mbulat revised this gist
Nov 10, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ # to get accurate spec/feature coverage data # # Use rcov:rspec or rcov:cucumber # to get non-aggregated coverage reports for rspec or cucumber separately require 'cucumber/rake/task' require 'spec/rake/spectask' -
mbulat revised this gist
Nov 10, 2009 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,9 @@ # # Save this as rcov.rake in lib/tasks and use rcov:all => # to get accurate spec/feature coverage data # # Use rcov:rspec or rcov:cucumber # to get none aggregated coverage reports for rspec or cucumber separately require 'cucumber/rake/task' require 'spec/rake/spectask' -
mbulat revised this gist
Nov 10, 2009 . 1 changed file with 17 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,15 +5,14 @@ require 'cucumber/rake/task' require 'spec/rake/spectask' namespace :rcov do Cucumber::Rake::Task.new(:cucumber_run) do |t| t.rcov = true t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data} t.rcov_opts << %[-o "coverage"] end Spec::Rake::SpecTask.new(:rspec_run) do |t| t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true @@ -25,8 +24,19 @@ desc "Run both specs and features to generate aggregated coverage" task :all do |t| rm "coverage.data" if File.exist?("coverage.data") Rake::Task["rcov:cucumber_run"].invoke Rake::Task["rcov:rspec_run"].invoke end desc "Run only rspecs" task :rspec do |t| rm "coverage.data" if File.exist?("coverage.data") Rake::Task["rcov:rspec_run"].invoke end desc "Run only cucumber" task :cucumber do |t| rm "coverage.data" if File.exist?("coverage.data") Rake::Task["rcov:cucumber_run"].invoke end end -
clayton created this gist
Apr 3, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ # From http://github.com/jaymcgavren # # Save this as rcov.rake in lib/tasks and use rcov:all => # to get accurate spec/feature coverage data require 'cucumber/rake/task' require 'spec/rake/spectask' namespace :rcov do Cucumber::Rake::Task.new(:cucumber) do |t| t.rcov = true t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data} t.rcov_opts << %[-o "coverage"] end Spec::Rake::SpecTask.new(:rspec) do |t| t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true t.rcov_opts = lambda do IO.readlines("#{RAILS_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten end end desc "Run both specs and features to generate aggregated coverage" task :all do |t| rm "coverage.data" if File.exist?("coverage.data") Rake::Task["rcov:cucumber"].invoke Rake::Task["rcov:rspec"].invoke end end