Skip to content

Commit

Permalink
add Coveralls to track test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlinsley committed Jun 25, 2013
1 parent 844dae3 commit 1ad1688
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -38,6 +38,7 @@ end
group :test do
gem 'cancan'
gem 'capybara', '1.1.2'
gem 'coveralls', '~> 0.6.7', require: false # Test coverage tool: www.coveralls.io
gem 'cucumber-rails', '1.3.0', :require => false
gem 'database_cleaner'
gem 'guard-coffeescript'
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper_without_rails.rb
Expand Up @@ -7,3 +7,5 @@

require 'detect_rails_version'
ENV['RAILS'] = detect_rails_version

require 'coveralls' and Coveralls.wear_merged! if ENV['TRAVIS']
5 changes: 4 additions & 1 deletion tasks/test.rake
Expand Up @@ -7,8 +7,11 @@ task :setup do
end

# Run specs and cukes
# If run by Travis, submit test coverage data to www.coveralls.io
desc "Run the full suite using 1 core"
task :test => ['spec:unit', 'spec:integration', 'cucumber', 'cucumber:class_reloading']
task test: ['spec:unit', 'spec:integration', 'cucumber', 'cucumber:class_reloading'] do
require 'coveralls' and Coveralls.push! if ENV['TRAVIS']
end

namespace :test do

Expand Down

0 comments on commit 1ad1688

Please sign in to comment.