Permalink
Browse files

Fixing coveralls configuration

  • Loading branch information...
1 parent 0675aba commit bb42fdb64eb9a2f3283ea99cbe95905d5a967794 @zedtux committed Nov 30, 2013
Showing with 23 additions and 3 deletions.
  1. +1 −0 .coveralls.yml
  2. +10 −1 features/support/env.rb
  3. +12 −2 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+service_name: travis-ci
@@ -7,8 +7,17 @@
require 'cucumber/rails'
require 'cucumber/timecop'
+require 'simplecov'
require 'coveralls'
-Coveralls.wear_merged!
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start 'rails' do
+ add_filter '.bundle/'
+ add_group "Workers", "app/worker"
+end
require 'sidekiq/testing'
Sidekiq::Testing.inline!
View
@@ -1,11 +1,21 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
+
+require 'simplecov'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start 'rails' do
+ add_filter '.bundle/'
+end
+
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'email_spec'
require 'rspec/autorun'
-require 'coveralls'
-Coveralls.wear_merged!
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.

0 comments on commit bb42fdb

Please sign in to comment.