Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6dd10e

Browse files
committed
Add SimpleCov gem for code coverage
1 parent 92c3833 commit a6dd10e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
Gemfile.lock
2+
coverage
3+
.idea

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ group :development, :test do
77
gem 'rake', '~> 10.0'
88
gem 'ci_reporter'
99
gem 'rspec'
10+
gem 'simplecov'
11+
gem 'simplecov-rcov'
1012
gem 'rest-client'
1113
gem 'rubocop'
1214
end

spec/spec_helper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
require 'simplecov'
2+
require 'simplecov-rcov'
3+
4+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
5+
SimpleCov.start do
6+
add_filter '/spec/'
7+
end
8+
19
require "yaml"
210
require "ruby_vcloud_sdk"
311

4-
512
module VCloudSdk
613
module Test
714

0 commit comments

Comments
 (0)