Commit eab62e5a authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by Jonathan Pastor

Add a spec_helper file that loads simplecov to output a coverage report

parent f0551652
......@@ -7,3 +7,4 @@ bundle
.bundle
vendor
/tmp
coverage
......@@ -10,4 +10,5 @@ gem "ruby-cute", :require => "cute"
gem "peach"
gem "restfully"
gem "rspec"
gem "webmock"
\ No newline at end of file
gem "webmock"
gem "simplecov"
......@@ -10,6 +10,7 @@ GEM
diff-lcs (1.3)
diffy (3.3.0)
dns-zone (0.3.1)
docile (1.3.2)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
faraday (0.15.4)
......@@ -93,6 +94,11 @@ GEM
net-ssh-multi (>= 1.2)
rest-client (>= 1.6)
safe_yaml (1.0.5)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.6)
......@@ -115,4 +121,5 @@ DEPENDENCIES
restfully
rspec
ruby-cute
simplecov
webmock
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
require 'spec_helper'
require 'rspec'
require 'webmock/rspec'
......
require 'simplecov'
SimpleCov.start do
add_filter '/tests/'
add_filter '/bundle/'
end
# This outputs the report to your public folder
# You will want to add this to .gitignore
SimpleCov.coverage_dir 'coverage'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment