Skip to content
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent ea91d86 commit 53a9e1d10ee99333830cf8d979335f79d36a92c3 @sferik sferik committed
Showing with 15 additions and 5 deletions.
  1. +5 −4 .gitignore
  2. +2 −0 Gemfile
  3. +8 −1 spec/helper.rb
View
9 .gitignore
@@ -1,6 +1,7 @@
-Gemfile.lock
-pkg/*
-.rvmrc
*.swp
-bin
.bundle
+.rvmrc
+Gemfile.lock
+bin
+coverage
+pkg/*
View
2 Gemfile
@@ -28,7 +28,9 @@ group :test do
end
end
+ gem 'coveralls', :require => false
gem 'rspec', '>= 2.11'
+ gem 'simplecov', :require => false
end
gemspec
View
9 spec/helper.rb
@@ -1,4 +1,11 @@
-$:.unshift(File.dirname(__FILE__) + '/../lib')
+require 'simplecov'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start
require 'logger'
require 'rspec'

0 comments on commit 53a9e1d

Please sign in to comment.
Something went wrong with that request. Please try again.