mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Add SimpleCov
This commit is contained in:
parent
4a67972968
commit
137db2c322
2 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
||||||
s.add_development_dependency 'rake', '~> 0.9'
|
s.add_development_dependency 'rake', '~> 0.9'
|
||||||
s.add_development_dependency 'guard', '~> 1.3.2'
|
s.add_development_dependency 'guard', '~> 1.3.2'
|
||||||
s.add_development_dependency 'mocha', '~> 0.13.1'
|
s.add_development_dependency 'mocha', '~> 0.13.1'
|
||||||
|
s.add_development_dependency 'simplecov'
|
||||||
# TODO: make this a plain dependency:
|
# TODO: make this a plain dependency:
|
||||||
s.add_development_dependency 'bond', '~> 0.4.2'
|
s.add_development_dependency 'bond', '~> 0.4.2'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
if ENV["COVERAGE"]
|
||||||
|
require "simplecov"
|
||||||
|
SimpleCov.start
|
||||||
|
end
|
||||||
|
|
||||||
unless Object.const_defined? 'Pry'
|
unless Object.const_defined? 'Pry'
|
||||||
$:.unshift File.expand_path '../../lib', __FILE__
|
$:.unshift File.expand_path '../../lib', __FILE__
|
||||||
require 'pry'
|
require 'pry'
|
||||||
|
|
Loading…
Reference in a new issue