Skip to content
Browse files

Fix rcov rake task, add rcov:full. Mark Bidi specs as slow.

  • Loading branch information...
1 parent 5a0749e commit 3b652d891f53a6fea7a190f838a3563a519c2f6a @KL-7 KL-7 committed Nov 13, 2012
Showing with 9 additions and 5 deletions.
  1. +7 −4 Rakefile
  2. +1 −1 spec/bidi/bidi_spec.rb
  3. +1 −0 spec/spec_helper.rb
View
11 Rakefile
@@ -32,12 +32,15 @@ namespace :spec do
end
if RUBY_VERSION < '1.9.0'
- desc 'Run all examples with RCov'
+ desc 'Run specs with RCov'
RSpec::Core::RakeTask.new('spec:rcov') do |t|
- t.rcov = true
- t.pattern = './spec/**/*_spec.rb'
- t.rcov_opts = %w(-T --sort coverage --exclude gems/,spec/)
+ t.rcov = true
+ t.pattern = './spec/**/*_spec.rb'
+ t.rcov_opts = '-T --sort coverage --exclude gems/,spec/'
end
+
+ desc 'Run full specs suit with RCov'
+ task 'spec:rcov:full' => %w[spec:full_spec_env spec:rcov]
end
namespace :update do
View
2 spec/bidi/bidi_spec.rb
@@ -20,7 +20,7 @@ def expand_bitset_str(bitset)
end
describe Bidi do
- it "should pass the derived tests in classpath_bidi_test.txt" do
+ it "should pass the derived tests in classpath_bidi_test.txt", :slow => true do
expected_level_data = []
expected_reorder_data = []
num_failed = 0
View
1 spec/spec_helper.rb
@@ -4,6 +4,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
require 'rspec'
+require 'rspec/autorun' # somehow makes rcov work with rspec
require 'twitter_cldr'
class FastGettext

0 comments on commit 3b652d8

Please sign in to comment.
Something went wrong with that request. Please try again.