Add simplecov for code coverage

Conflicts:
	Gemfile.lock
This commit is contained in:
Luke Imhoff
2012-11-06 16:30:41 -06:00
parent 85dd212456
commit 236db52d3d
4 changed files with 15 additions and 0 deletions
+5
View File
@@ -8,6 +8,11 @@ root_pathname = spec_pathname.join('..').expand_path
lib_pathname = root_pathname.join('lib')
$LOAD_PATH.unshift(lib_pathname.to_s)
# must be first require and started before any other requires so that it can measure coverage of all following required
# code. It is after the rubygems and bundler only because Bundler.setup supplies the LOAD_PATH to simplecov.
require 'simplecov'
SimpleCov.start
require 'rspec/core'
# Requires supporting ruby files with custom matchers and macros, etc,