diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-24 09:46:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-24 09:46:50 +0200 |
commit | 15298b7b3bc8facb1f350b7ab4ce9ec2fae50599 (patch) | |
tree | 8c33c0042f20c831d5757d636d4a34953a207ea2 | |
parent | 4a3f2e4adce52e7a3495f0a825fe2f502e052006 (diff) | |
download | colonial-twilight-15298b7b3bc8facb1f350b7ab4ce9ec2fae50599.zip colonial-twilight-15298b7b3bc8facb1f350b7ab4ce9ec2fae50599.tar.gz |
bundle : add simplecov
-rw-r--r-- | Gemfile.lock | 8 | ||||
-rw-r--r-- | colonial_twilight.gemspec | 1 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index f4959b2..506acdb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,6 +7,7 @@ GEM remote: http://rubygems.org/ specs: diff-lcs (1.5.0) + docile (1.4.0) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -20,6 +21,12 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) PLATFORMS ruby @@ -27,6 +34,7 @@ PLATFORMS DEPENDENCIES ColonialTwilight! rspec + simplecov BUNDLED WITH 2.4.19 diff --git a/colonial_twilight.gemspec b/colonial_twilight.gemspec index b5215ab..024f519 100644 --- a/colonial_twilight.gemspec +++ b/colonial_twilight.gemspec @@ -17,4 +17,5 @@ Gem::Specification.new do |s| s.files = Dir['lib/**/*.rb'] s.executables = 'ColonialTwilight.rb' s.add_development_dependency 'rspec' + s.add_development_dependency 'simplecov' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c80d44b..67e47c4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,7 @@ +require 'simplecov' +SimpleCov.start do + add_filter %r{^/spec/} +end # This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause |