Skip to content

Commit 769d76c

Browse files
committed
Added Coveralls for code coverage tracking
1 parent a9c1b97 commit 769d76c

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.bundle
33
/.ruby-version
44
/Gemfile.lock
5+
/coverage

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Scientist!
22

3-
A Ruby library for carefully refactoring critical paths. [![Build Status](https://travis-ci.org/github/scientist.svg?branch=master)](https://travis-ci.org/github/scientist)
3+
A Ruby library for carefully refactoring critical paths. [![Build Status](https://travis-ci.org/github/scientist.svg?branch=master)](https://travis-ci.org/github/scientist) [![Coverage Status](https://coveralls.io/repos/github/github/scientist/badge.svg?branch=master)](https://coveralls.io/github/github/scientist?branch=master)
44

55
## How do I science?
66

scientist.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ Gem::Specification.new do |gem|
1616
gem.require_paths = ["lib"]
1717

1818
gem.add_development_dependency "minitest", "~> 5.8"
19+
gem.add_development_dependency "coveralls", "~> 0.8"
1920
end

script/test

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -e
66
cd $(dirname "$0")/..
77
script/bootstrap && ruby -I lib \
88
-e 'require "bundler/setup"' \
9+
-e 'require "coveralls"; Coveralls.wear!{ add_filter ".bundle" }' \
910
-e 'require "minitest/autorun"' \
1011
-e 'require "scientist"' \
1112
-e '(ARGV.empty? ? Dir["test/**/*_test.rb"] : ARGV).each { |f| load f }' -- "$@"

0 commit comments

Comments
 (0)