Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix rcov #229

Merged
merged 2 commits into from

2 participants

@y-higuchi

rake rcov 関連の修正2点

spec/spec_helper.rb:
現状、rake rcov のカバレッジ結果にspecの実行が反映されないため、
実行を反映させるための修正です。
下記のケースの最初のコメントで言及されているworkaround。
rspec/rspec-core#422

Rakefile:
カバレッジ結果からgemsディレクトリのものを除外.

@yasuhito yasuhito merged commit 531c261 into from
@y-higuchi y-higuchi deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 27, 2012
  1. @y-higuchi

    Fix rcov not working

    y-higuchi authored
  2. @y-higuchi
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +1 −0  Rakefile
  2. +1 −0  spec/spec_helper.rb
View
1  Rakefile
@@ -53,6 +53,7 @@ begin
RSpec::Core::RakeTask.new( :rcov ) do | spec |
spec.pattern = "spec/**/*_spec.rb"
spec.rcov = true
+ spec.rcov_opts = [ "-x", "gems" ]
end
rescue LoadError
$stderr.puts $!.to_s
View
1  spec/spec_helper.rb
@@ -25,6 +25,7 @@
require "rubygems"
require "rspec"
+require "rspec/autorun"
require "trema"
require "trema/dsl/configuration"
require "trema/dsl/context"
Something went wrong with that request. Please try again.