Commit bb28b1a43e083a770487ae0a8f0f2f0d113492e3

Authored by Rafael Manzo
1 parent 71280702

Using CodeClimate test coverage reporter instead of coveralls

.travis.yml
... ... @@ -13,6 +13,7 @@ before_script:
13 13 - bundle exec rake db:setup
14 14 - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
15 15 - export BUNDLE_GEMFILE=$PWD/Gemfile
  16 + - export CODECLIMATE_REPO_TOKEN=045c2433d496f108c0c6afa5516a72ddbfb1868fb34bf7a9bd095b7a0ea34a79
16 17  
17 18 script:
18 19 - bundle exec rake spec
... ...
Gemfile
... ... @@ -72,6 +72,9 @@ group :test do
72 72  
73 73 # Simple Mocks
74 74 gem 'mocha', require: 'mocha/api'
  75 +
  76 + # Test coverage report
  77 + gem "codeclimate-test-reporter", require: nil
75 78 end
76 79  
77 80 group :development, :test do
... ... @@ -99,9 +102,6 @@ group :development, :test do
99 102 # JavaScript unit tests
100 103 gem "konacha", "~> 3.3.0"
101 104  
102   - # Test coverage history
103   - gem 'coveralls', require: false
104   -
105 105 # Better error interface
106 106 gem 'better_errors'
107 107 gem 'binding_of_caller'
... ...
Gemfile.lock
... ... @@ -84,6 +84,8 @@ GEM
84 84 chart-js-rails (0.0.8)
85 85 railties (> 3.1)
86 86 cliver (0.3.2)
  87 + codeclimate-test-reporter (0.4.6)
  88 + simplecov (>= 0.7.1, < 1.0.0)
87 89 coderay (1.1.0)
88 90 coffee-rails (4.1.0)
89 91 coffee-script (>= 2.2.0)
... ... @@ -96,12 +98,6 @@ GEM
96 98 colorpicker (0.0.5)
97 99 columnize (0.9.0)
98 100 commonjs (0.2.7)
99   - coveralls (0.7.9)
100   - multi_json (~> 1.10)
101   - rest-client (~> 1.7)
102   - simplecov (~> 0.9.1)
103   - term-ansicolor (~> 1.3)
104   - thor (~> 0.19.1)
105 101 cucumber (1.3.18)
106 102 builder (>= 2.1.2)
107 103 diff-lcs (>= 1.1.3)
... ... @@ -189,7 +185,6 @@ GEM
189 185 net-scp (1.2.1)
190 186 net-ssh (>= 2.6.5)
191 187 net-ssh (2.9.2)
192   - netrc (0.10.2)
193 188 nokogiri (1.6.6.2)
194 189 mini_portile (~> 0.6.0)
195 190 orm_adapter (0.5.0)
... ... @@ -232,9 +227,6 @@ GEM
232 227 ref (1.0.5)
233 228 responders (2.1.0)
234 229 railties (>= 4.2.0, < 5)
235   - rest-client (1.7.2)
236   - mime-types (>= 1.16, < 3.0)
237   - netrc (~> 0.7)
238 230 rspec-core (3.2.0)
239 231 rspec-support (~> 3.2.0)
240 232 rspec-expectations (3.2.0)
... ... @@ -285,15 +277,12 @@ GEM
285 277 colorize (>= 0.7.0)
286 278 net-scp (>= 1.1.2)
287 279 net-ssh (>= 2.8.0)
288   - term-ansicolor (1.3.0)
289   - tins (~> 1.0)
290 280 therubyracer (0.12.1)
291 281 libv8 (~> 3.16.14.0)
292 282 ref
293 283 thor (0.19.1)
294 284 thread_safe (0.3.4)
295 285 tilt (1.4.1)
296   - tins (1.3.4)
297 286 turbolinks (2.5.3)
298 287 coffee-rails
299 288 tzinfo (1.2.2)
... ... @@ -326,9 +315,9 @@ DEPENDENCIES
326 315 capistrano-rails
327 316 capistrano-rvm (~> 0.1.0)
328 317 chart-js-rails (~> 0.0.6)
  318 + codeclimate-test-reporter
329 319 coffee-rails (~> 4.1.0)
330 320 colorpicker (~> 0.0.5)
331   - coveralls
332 321 cucumber-rails (~> 1.4.0)
333 322 dalli (~> 2.7.0)
334 323 database_cleaner (~> 1.3.0)
... ...
README.rdoc
1 1 == README - Prezento
2 2  
3   -{<img src="https://codeclimate.com/github/mezuro/prezento.png" />}[https://codeclimate.com/github/mezuro/prezento] {<img src="https://travis-ci.org/mezuro/prezento.png?branch=master" alt="Build Status" />}[https://travis-ci.org/mezuro/prezento] {<img src="https://coveralls.io/repos/mezuro/prezento/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/mezuro/prezento?branch=master]
  3 +{<img src="https://codeclimate.com/github/mezuro/prezento.png" />}[https://codeclimate.com/github/mezuro/prezento] {<img src="https://travis-ci.org/mezuro/prezento.png?branch=master" alt="Build Status" />}[https://travis-ci.org/mezuro/prezento] {<img src="https://codeclimate.com/github/mezuro/prezento/badges/coverage.svg" />}[https://codeclimate.com/github/mezuro/prezento]
4 4  
5 5 Prezento is the web interface for Mezuro.
6 6  
... ...
spec/rails_helper.rb
1 1 #Test coverage report
  2 +require "codeclimate-test-reporter"
  3 +CodeClimate::TestReporter.start
2 4 require 'simplecov'
3   -require 'coveralls'
4 5  
5 6 SimpleCov.start do
6   - formatter SimpleCov::Formatter::MultiFormatter[
7   - Coveralls::SimpleCov::Formatter,
8   - SimpleCov::Formatter::HTMLFormatter
9   - ]
10 7 coverage_dir 'coverage/rspec'
11 8  
12 9 add_group "Models", "app/models"
... ...