summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 15:59:38 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-25 15:59:38 -0700
commit8007cb91c323c86a9c68d435c67592e63a60808c (patch)
tree793fcf75579c35b48d2710bbd9a0804f9aa16e5f
parent2cf6bac625400bfa037d0aca36e2589c1148204c (diff)
downloadgitlab-ci-8007cb91c323c86a9c68d435c67592e63a60808c.tar.gz
Include test coverage in tests
-rw-r--r--Gemfile1
-rw-r--r--spec/spec_helper.rb11
2 files changed, 11 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index cabaeaf..26ecb3e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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'