File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ source 'https://rubygems.org'
33gemspec
44
55group :test do
6- gem 'coveralls '
6+ gem 'simplecov '
77 gem 'json'
88 gem 'rack'
99 gem 'rack-test'
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ through a HTTP interface. Intended to be used together with a
66
77[ ![ Gem Version] [ 4 ]] ( http://badge.fury.io/rb/prometheus-client )
88[ ![ Build Status] [ 3 ]] ( https://circleci.com/gh/prometheus/client_ruby/tree/master.svg?style=svg )
9- [ ![ Coverage Status] [ 7 ]] ( https://coveralls.io/r/prometheus/client_ruby )
109
1110## Usage
1211
Original file line number Diff line number Diff line change 11# encoding: UTF-8
22
33require 'simplecov'
4- require 'coveralls'
54
65RSpec . configure do |c |
76 c . warnings = true
87end
98
10- SimpleCov . formatter =
11- if ENV [ 'CI' ]
12- Coveralls ::SimpleCov ::Formatter
13- else
14- SimpleCov ::Formatter ::HTMLFormatter
15- end
9+ SimpleCov . formatter = SimpleCov ::Formatter ::HTMLFormatter
1610
1711SimpleCov . start
You can’t perform that action at this time.
0 commit comments