Add some code coverage while we're here

This commit is contained in:
R. Tyler Croy 2016-02-03 05:32:57 -08:00
parent bc560f21ea
commit 246f27e76d
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 13 additions and 1 deletions

2
.gitignore vendored
View File

@ -14,3 +14,5 @@ Gemfile.lock
Jarfile.lock
.jbundler/
lib/hermann_jars.rb
coverage/
spec/reports

View File

@ -11,7 +11,6 @@ group :development do
gem 'jar-dependencies', :platform => :jruby
gem 'rake-compiler'
gem 'pry'
gem 'ci_reporter_rspec'
# Used for testing `zk` gem based functionality
gem 'zk', '~> 1.9.4'
@ -24,4 +23,8 @@ group :test do
# Used for testing encoding protobufs in an out of Hermann in integration
# tests
gem 'protobuffy'
gem 'ci_reporter_rspec'
gem 'simplecov'
gem 'simplecov-rcov'
end

View File

@ -2,6 +2,13 @@ require 'rubygems'
require 'yaml'
require 'rspec'
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.start do
formatter = SimpleCov::Formatter::RcovFormatter
end
# Add ext/ to the load path so we can load `hermann_lib`
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../ext/'))
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib/'))