Skip to content
Permalink
Browse files
Add coveralls coverage reports
  • Loading branch information
tooky committed Jul 8, 2013
1 parent 925ceaa commit 60cf8af0bde8c7dad9598777f04332af1a1bdc01
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
@@ -0,0 +1 @@
service_name: travis-ci
@@ -2,3 +2,4 @@
/tags
/Gemfile.lock
/tmp/
/coverage
@@ -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")
@@ -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
Copy link
Member

@mattwynne mattwynne commented on 60cf8af Jul 8, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.