Skip to content

Commit

Permalink
Added .coveralls.yml; Reconfigured test suite to use Coveralls properly
Browse files Browse the repository at this point in the history
  • Loading branch information
rex committed Feb 26, 2014
1 parent ecb5058 commit 2a87b83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
16 changes: 14 additions & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require 'simplecov'
require 'coveralls'

Coveralls.wear!

=begin
module SimpleCov::Configuration
def clean_filters
@filters = []
Expand All @@ -17,6 +16,8 @@ def clean_filters
ENV["COVERAGE"] && SimpleCov.start do
add_filter "/.rvm/"
end
=end

require 'rubygems'
require 'bundler'
begin
Expand All @@ -29,6 +30,17 @@ def clean_filters
require 'test/unit'
require 'shoulda'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

ENV["COVERAGE"] && SimpleCov.start do
add_filter "/.rvm/"
end

Coveralls.wear!

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'server'
Expand Down

0 comments on commit 2a87b83

Please sign in to comment.