diff --git a/Gemfile b/Gemfile index c14b5709..965374dd 100644 --- a/Gemfile +++ b/Gemfile @@ -57,7 +57,6 @@ group :test do gem "mocha", :require => false gem "aruba", git: 'https://github.com/cucumber/aruba', :require => false # need 0.5.4 for piping files; 0.5.3 is latest - gem "simplecov" gem "timecop", "~> 0.6.2" # Note that > 2.14 has problems, see: diff --git a/features/support/env.rb b/features/support/env.rb index 376c2cf3..3a1145c8 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -3,8 +3,10 @@ # newer version of cucumber-rails. Consider adding your own code to a new file # instead of editing this one. Cucumber will automatically load all features/**/*.rb # files. -require 'simplecov' -SimpleCov.start 'rails' + +# test coverage from codeclimate +require "codeclimate-test-reporter" +CodeClimate::TestReporter.start require 'cucumber/rails' require 'aruba/cucumber' diff --git a/test/minimal_test_helper.rb b/test/minimal_test_helper.rb index 1216a193..ca8e59a2 100644 --- a/test/minimal_test_helper.rb +++ b/test/minimal_test_helper.rb @@ -1,5 +1,6 @@ -require 'simplecov' -SimpleCov.start 'rails' +# test coverage from codeclimate +require "codeclimate-test-reporter" +CodeClimate::TestReporter.start ENV["RAILS_ENV"] = "test" require 'test/unit'