diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-01-14 23:42:45 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-01-15 01:52:54 -0700 |
| commit | 77fddca312bad0f59f323501e5e33e5b285fa462 (patch) | |
| tree | 0c8a95b95a95503fdb7cf0869d257f075d8cabfb | |
| parent | cd9557d1f61e00a87fa81c72a4eee228892d6159 (diff) | |
only install deep-cover if the COVERAGE env var is set [skip ci]
| -rw-r--r-- | CONTRIBUTING-CODE.adoc | 6 | ||||
| -rw-r--r-- | Gemfile | 4 | ||||
| -rw-r--r-- | asciidoctor-pdf.gemspec | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/CONTRIBUTING-CODE.adoc b/CONTRIBUTING-CODE.adoc index 0c32c6c2..6677ba8c 100644 --- a/CONTRIBUTING-CODE.adoc +++ b/CONTRIBUTING-CODE.adoc @@ -239,7 +239,11 @@ The HTML report helps you understand which lines and branches were missed, if an Despite being fast, the downside of using simplecov is that it misses code branches. You can use deep-cover instead of simplecov to generate a more thorough report. -To do so, set the `COVERAGE` environment variable to `deep` when running the tests: +To do so, first run `bundle` at least once with the `COVERAGE` environment variable set: + + $ COVERAGE=true bundle + +Then, set the `COVERAGE` environment variable to `deep` when running the tests: $ COVERAGE=deep bundle exec rake spec @@ -19,3 +19,7 @@ gem 'text-hyphen', require: false group :docs do gem 'yard', require: false end + +group :coverage do + gem 'deep-cover-core', '~> 0.7.0', require: false if ENV.key? 'COVERAGE' +end diff --git a/asciidoctor-pdf.gemspec b/asciidoctor-pdf.gemspec index 16e0f74f..8d848fe5 100644 --- a/asciidoctor-pdf.gemspec +++ b/asciidoctor-pdf.gemspec @@ -48,7 +48,6 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'treetop', '~> 1.5.0' s.add_development_dependency 'rake', '~> 13.0.0' - s.add_development_dependency 'deep-cover-core', '~> 0.7.0' s.add_development_dependency 'simplecov', '~> 0.17.0' s.add_development_dependency 'rspec', '~> 3.9.0' s.add_development_dependency 'pdf-inspector', '~> 1.3.0' |
