Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Added simplecov/coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich committed Nov 20, 2015
1 parent 770ec23 commit 0fb092e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: 30YN0G0xYyS1DPQcbM3e41AfNDyr9O2Un
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ gem 'pry'
gem 'rspec-rails'
gem 'exception_manager'
gem 'binding_of_caller'
gem 'coveralls', require: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/iliabylich/binding_dumper.svg?branch=master)](https://travis-ci.org/iliabylich/binding_dumper)
[![Code Climate](https://codeclimate.com/github/iliabylich/binding_dumper/badges/gpa.svg)](https://codeclimate.com/github/iliabylich/binding_dumper)
[![Coverage Status](https://coveralls.io/repos/iliabylich/binding_dumper/badge.svg?branch=master&service=github)](https://coveralls.io/github/iliabylich/binding_dumper?branch=master)
[![Inline docs](http://inch-ci.org/github/iliabylich/binding_dumper.svg?branch=master)](http://inch-ci.org/github/iliabylich/binding_dumper)

A gem for dumping a whole binding and restoring it later. After restoring you can use `pry` to perform delayed debugging.
Expand Down
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
else
require 'simplecov'
SimpleCov.start do
add_filter '/spec/support'
end
end

require 'pathname'
GEM_ROOT = Pathname.new File.expand_path('../..', __FILE__)
$: << GEM_ROOT.join('lib').to_s
Expand Down

0 comments on commit 0fb092e

Please sign in to comment.