Skip to content

Commit

Permalink
Fixing coveralls configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zedtux committed Nov 30, 2013
1 parent 0675aba commit bb42fdb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service_name: travis-ci
11 changes: 10 additions & 1 deletion features/support/env.rb
Expand Up @@ -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!
Expand Down
14 changes: 12 additions & 2 deletions spec/spec_helper.rb
@@ -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.
Expand Down

0 comments on commit bb42fdb

Please sign in to comment.