diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 15:59:38 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-25 15:59:38 -0700 |
commit | 8007cb91c323c86a9c68d435c67592e63a60808c (patch) | |
tree | 793fcf75579c35b48d2710bbd9a0804f9aa16e5f | |
parent | 2cf6bac625400bfa037d0aca36e2589c1148204c (diff) | |
download | gitlab-ci-8007cb91c323c86a9c68d435c67592e63a60808c.tar.gz |
Include test coverage in tests
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | spec/spec_helper.rb | 11 |
2 files changed, 11 insertions, 1 deletions
@@ -113,6 +113,7 @@ group :development, :test do end group :test do + gem 'simplecov' gem 'webmock' gem 'email_spec' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d6f82e8..29329b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,13 @@ -# This file is copied to spec/ when you run 'rails generate rspec:install' +if ENV['SIMPLECOV'] + require 'simplecov' + SimpleCov.start +end + +if ENV['COVERALLS'] + require 'coveralls' + Coveralls.wear!('rails') +end + ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' |