Permalink
Browse files

Add coveralls coverage reports

  • Loading branch information...
1 parent 925ceaa commit 60cf8af0bde8c7dad9598777f04332af1a1bdc01 Steve Tooke committed Jul 8, 2013
Showing with 14 additions and 1 deletion.
  1. +1 −0 .coveralls.yml
  2. +1 −0 .gitignore
  3. +1 −1 Rakefile
  4. +3 −0 cucumber-core.gemspec
  5. +8 −0 spec/coveralls.rb
View
@@ -0,0 +1 @@
+service_name: travis-ci
View
@@ -2,3 +2,4 @@
/tags
/Gemfile.lock
/tmp/
+/coverage
View
@@ -7,7 +7,7 @@ $:.unshift File.expand_path("../lib", __FILE__)
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
- t.ruby_opts = %w[-w -r./spec/capture_warnings]
+ t.ruby_opts = %w[-w -r./spec/capture_warnings -r./spec/coveralls]
t.rspec_opts = %w[--color]
end
@@ -26,6 +26,9 @@ Gem::Specification.new do |s|
s.add_development_dependency 'kramdown', '~> 0.14'
s.add_development_dependency 'yard', '~> 0.8.0'
+ # For coverage reports
+ s.add_development_dependency 'coveralls', '~> 0.6.7'
+
s.rubygems_version = ">= 1.6.1"
s.files = `git ls-files`.split("\n").reject {|path| path =~ /\.gitignore$/ }
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
View
@@ -0,0 +1,8 @@
+require 'simplecov'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start

1 comment on commit 60cf8af

@mattwynne
Member

Good idea! Clearly reveals all the slop in the AST that we probably don't need.

We should leave that code in there until we've finished integrating with the front-end, then we can blitz it out. Except for the Ast::Table - that should get gutted ASAP. :)

Please sign in to comment.