Merge pull request #2996 from myabc/feature/codecov-coverage

Switch code coverage reporting to codecov.io
pull/2993/merge
Martin 10 years ago
commit 94423dc9d0
  1. 6
      .simplecov
  2. 2
      Gemfile
  3. 9
      Gemfile.lock
  4. 1
      README.md
  5. 1
      features/support/env.rb
  6. 6
      spec/spec_helper.rb
  7. 6
      test/test_helper.rb

@ -0,0 +1,6 @@
SimpleCov.start :rails
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

@ -166,7 +166,7 @@ group :test do
gem "shoulda-matchers", '~> 2.5.0'
gem "json_spec"
gem "activerecord-tableless", "~> 1.0"
gem "codeclimate-test-reporter", :require => nil
gem 'codecov', require: nil
gem 'equivalent-xml', '~> 0.5.1'
end

@ -138,8 +138,10 @@ GEM
activesupport (>= 3.0)
cocaine (0.5.4)
climate_control (>= 0.0.3, < 1.0)
codeclimate-test-reporter (0.1.1)
simplecov (>= 0.7.1, < 1.0.0)
codecov (0.0.6)
json
simplecov
url
coderay (1.0.9)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
@ -456,6 +458,7 @@ GEM
kgio (~> 2.6)
rack
raindrops (~> 0.7)
url (0.3.2)
virtus (1.0.4)
axiom-types (~> 0.1)
coercible (~> 1.0)
@ -484,7 +487,7 @@ DEPENDENCIES
capybara-select2!
carrierwave (~> 0.10.0)
cocaine
codeclimate-test-reporter
codecov
coderay (~> 1.0.9)
color-tools (~> 1.3.0)
cucumber-rails (~> 1.4.2)

@ -2,6 +2,7 @@
[<img src="https://travis-ci.org/opf/openproject.svg?branch=dev" alt="Build Status" />](https://travis-ci.org/opf/openproject)
[<img src="https://gemnasium.com/opf/openproject.png" alt="Dependency Status" />](https://gemnasium.com/opf/openproject)
[![Code Climate](https://codeclimate.com/github/opf/openproject/badges/gpa.svg)](https://codeclimate.com/github/opf/openproject)
[![codecov.io](http://codecov.io/github/opf/openproject/coverage.svg?branch=release/4.1)](http://codecov.io/github/opf/openproject?branch=release/4.1)
[![Inline docs](http://inch-ci.org/github/opf/openproject.png?branch=dev)](http://inch-ci.org/github/opf/openproject)
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/opf/openproject?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@ -33,6 +33,7 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'simplecov'
require 'cucumber/rails'
require 'cucumber/rspec/doubles'
require 'capybara-screenshot/cucumber'

@ -27,11 +27,7 @@
#++
require 'rubygems'
if ENV['CI'] == 'true'
# we are running on a CI server, report coverage to code climate
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
end
require 'simplecov'
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'

@ -29,11 +29,7 @@
ENV['RAILS_ENV'] = 'test'
if ENV['CI'] == 'true'
# we are running on a CI server, report coverage to code climate
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
end
require 'simplecov'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

Loading…
Cancel
Save