Add SimpleCov coverage when running tests under 1.9 (though it doesn't seem to measure correctly...?).
This commit is contained in:
parent
abe67c1702
commit
c320c75c8d
|
@ -1,4 +1,5 @@
|
||||||
*~
|
*~
|
||||||
|
coverage
|
||||||
pkg
|
pkg
|
||||||
tmp
|
tmp
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
|
|
|
@ -17,4 +17,5 @@ Gem::Specification.new do |s|
|
||||||
s.add_development_dependency('rake-compiler')
|
s.add_development_dependency('rake-compiler')
|
||||||
s.add_development_dependency('minitest')
|
s.add_development_dependency('minitest')
|
||||||
s.add_development_dependency('minitest-matchers')
|
s.add_development_dependency('minitest-matchers')
|
||||||
|
s.add_development_dependency('simplecov')
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,8 +3,12 @@ gem 'minitest'
|
||||||
require 'minitest/spec'
|
require 'minitest/spec'
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'minitest/matchers'
|
require 'minitest/matchers'
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
require 'process_shared'
|
require 'process_shared'
|
||||||
|
SimpleCov.start do
|
||||||
|
add_filter "/spec/"
|
||||||
|
end
|
||||||
|
|
||||||
class RangeMatcher
|
class RangeMatcher
|
||||||
def initialize(operator, limit)
|
def initialize(operator, limit)
|
||||||
|
|
Loading…
Reference in New Issue