Change rcov to simplecov #87

Merged
merged 2 commits into from Apr 29, 2013
View
5 .travis.yml
@@ -1,7 +1,8 @@
language: ruby
rvm:
- - 1.9.2
+ - 2.0.0
- 1.9.3
+ - 1.9.2
-env:
+env:
- PARSE_APPLICATION_ID=Slw1ACyMSVguo79pWvfIq15pkUjfwTLNPpL4984b PARSE_REST_API_KEY=qJKM8CGOAn70WOyR16f16YbyKWM0nBJCEbbtAMOm
View
24 Gemfile
@@ -1,20 +1,20 @@
-source "http://rubygems.org"
+source 'https://rubygems.org'
# Add dependencies required to use your gem here.
# Example:
-# gem "activesupport", ">= 2.3.5"
+# gem 'activesupport', '>= 2.3.5'
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
- gem "bundler"
- gem "shoulda", ">= 0"
- gem "test-unit", '= 2.5.0'
- gem "mocha", '= 0.12.0', :require => false
- gem "jeweler", "~> 1.6.4"
- gem "rcov", ">= 0"
- gem "webmock"
- gem "vcr"
+ gem 'bundler'
+ gem 'shoulda', '>= 0'
+ gem 'test-unit', '= 2.5.0'
+ gem 'mocha', '= 0.12.0', :require => false
+ gem 'jeweler', '~> 1.6.4'
+ gem 'simplecov', :require => false
+ gem 'webmock'
+ gem 'vcr'
end
-gem "patron"
-gem "iron_mq"
+gem 'patron'
+gem 'iron_mq'
View
12 Gemfile.lock
@@ -1,5 +1,5 @@
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
addressable (2.3.2)
crack (0.3.1)
@@ -13,19 +13,23 @@ GEM
git (>= 1.2.5)
rake
metaclass (0.0.1)
- mime-types (1.20.1)
+ mime-types (1.22)
mocha (0.12.0)
metaclass (~> 0.0.1)
+ multi_json (1.7.2)
net-http-persistent (2.8)
patron (0.4.18)
rake (0.9.2.2)
- rcov (0.9.11)
rest (2.2.0)
net-http-persistent
rest-client (>= 0.3.0)
rest-client (1.6.7)
mime-types (>= 1.16)
shoulda (2.11.3)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
test-unit (2.5.0)
vcr (2.4.0)
webmock (1.8.10)
@@ -41,8 +45,8 @@ DEPENDENCIES
jeweler (~> 1.6.4)
mocha (= 0.12.0)
patron
- rcov
shoulda
+ simplecov
test-unit (= 2.5.0)
vcr
webmock
View
10 Rakefile
@@ -32,17 +32,9 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- test.rcov_opts << '--exclude "gems/*"'
-end
-
task :default => :test
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
View
6 test/helper.rb
@@ -7,6 +7,12 @@
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
+
+require 'simplecov'
+SimpleCov.start do
+ add_filter "/test/"
+end if ENV["COVERAGE"]
+
require 'test/unit'
require 'shoulda'
require 'mocha'