1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

Add setup for coveralls.io code coverage tool

This commit is contained in:
Marc Siegel 2013-07-05 10:46:19 -04:00
parent b286e87c4a
commit d3bb0a3102
6 changed files with 11 additions and 1 deletions

2
.coveralls.yml Normal file
View file

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

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ pkg
.idea .idea
doc doc
.yardoc .yardoc
coverage

View file

@ -7,4 +7,5 @@ gemspec
group :test do group :test do
gem "rake", ">= 0.9.2" gem "rake", ">= 0.9.2"
gem "rspec", ">= 2.11.0" gem "rspec", ">= 2.11.0"
end gem "coveralls", require: false
end

View file

@ -12,6 +12,7 @@ Let's make our Ruby DSLs more docile...
[![Build Status](https://travis-ci.org/ms-ati/docile.png)](https://travis-ci.org/ms-ati/docile) [![Build Status](https://travis-ci.org/ms-ati/docile.png)](https://travis-ci.org/ms-ati/docile)
[![Dependency Status](https://gemnasium.com/ms-ati/docile.png)](https://gemnasium.com/ms-ati/docile) [![Dependency Status](https://gemnasium.com/ms-ati/docile.png)](https://gemnasium.com/ms-ati/docile)
[![Code Climate](https://codeclimate.com/github/ms-ati/docile.png)](https://codeclimate.com/github/ms-ati/docile) [![Code Climate](https://codeclimate.com/github/ms-ati/docile.png)](https://codeclimate.com/github/ms-ati/docile)
[![Coverage Status](https://coveralls.io/repos/ms-ati/docile/badge.png)](https://coveralls.io/r/ms-ati/docile)
## Basic Usage ## Basic Usage

View file

@ -27,4 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "yard" s.add_development_dependency "yard"
s.add_development_dependency "redcarpet" s.add_development_dependency "redcarpet"
s.add_development_dependency "github-markup" s.add_development_dependency "github-markup"
# Coveralls test coverage tool
s.add_development_dependency "coveralls"
end end

View file

@ -1,6 +1,8 @@
require 'rubygems' require 'rubygems'
require 'rspec' require 'rspec'
require 'singleton' require 'singleton'
require 'coveralls'
Coveralls.wear!
test_dir = File.dirname(__FILE__) test_dir = File.dirname(__FILE__)
$LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir) $LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)