Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add code coverage support

  • Loading branch information...
commit c6865d0ad5bdc8317337ac4fb632dd3c88d0e40f 1 parent 1117bae
@pfleidi authored
Showing with 13 additions and 0 deletions.
  1. +5 −0 Gemfile
  2. +8 −0 spec/unit/helper.rb
View
5 Gemfile
@@ -1,4 +1,9 @@
source 'https://rubygems.org'
+group :test do
+ gem 'simplecov', :require => false
+ gem 'coveralls', :require => false
+end
+
# Specify your gem's dependencies in mlk.gemspec
gemspec
View
8 spec/unit/helper.rb
@@ -1,5 +1,13 @@
# encoding: utf-8
+if ENV["CI"]
+ require 'coveralls'
+ Coveralls.wear!
+else
+ require 'simplecov'
+ SimpleCov.start
+end
+
require 'minitest/autorun'
require 'mocha/setup'
Please sign in to comment.
Something went wrong with that request. Please try again.