1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Add Coveralls (uses simplecov) for code coverage.

This commit is contained in:
Andy Brody 2017-05-30 02:41:47 -04:00
parent 8c3375b299
commit a513e48332
4 changed files with 8 additions and 2 deletions

2
.coveralls.yml Normal file
View file

@ -0,0 +1,2 @@
---
service_name: travis-ci

View file

@ -22,8 +22,8 @@ RSpec::Core::RakeTask.new('spec:integration') do |t|
end end
desc "Print specdocs" desc "Print specdocs"
RSpec::Core::RakeTask.new(:doc) do |t| RSpec::Core::RakeTask.new(:specdoc) do |t|
t.rspec_opts = ["--format", "specdoc", "--dry-run"] t.rspec_opts = ["--format", "documentation", "--dry-run"]
t.pattern = 'spec/**/*_spec.rb' t.pattern = 'spec/**/*_spec.rb'
end end

View file

@ -16,6 +16,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/rest-client/rest-client' s.homepage = 'https://github.com/rest-client/rest-client'
s.summary = 'Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.' s.summary = 'Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.'
s.add_development_dependency('coveralls', '~> 0.8')
s.add_development_dependency('webmock', '~> 2.0') s.add_development_dependency('webmock', '~> 2.0')
s.add_development_dependency('rspec', '~> 3.0') s.add_development_dependency('rspec', '~> 3.0')
s.add_development_dependency('pry', '~> 0') s.add_development_dependency('pry', '~> 0')

View file

@ -1,3 +1,6 @@
require 'coveralls'
Coveralls.wear!
require 'webmock/rspec' require 'webmock/rspec'
require 'rest-client' require 'rest-client'