diff options
| author | a14m <[email protected]> | 2020-12-14 22:03:57 +0000 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-14 22:03:57 +0000 |
| commit | 50a9f841d6b27a0c842bf5127940d4989a621d10 (patch) | |
| tree | 0eef3a3f5618a0e7e71164e74db1e49d187fdd92 /CLI/ruby/spec/spec_helper.rb | |
| parent | 628e5e81596892cadfd5b5dea46001556b6a7d49 (diff) | |
| parent | b710263617e019e4ffed3dbafcc6795f760bb151 (diff) | |
Merge branch 'feature/code-coverage' into 'master'
Feature/code coverage
See merge request a14m/game-of-life!10
Diffstat (limited to 'CLI/ruby/spec/spec_helper.rb')
| -rw-r--r-- | CLI/ruby/spec/spec_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CLI/ruby/spec/spec_helper.rb b/CLI/ruby/spec/spec_helper.rb index 890ca34..e7feb44 100644 --- a/CLI/ruby/spec/spec_helper.rb +++ b/CLI/ruby/spec/spec_helper.rb @@ -1,5 +1,14 @@ # frozen_string_literal: true +require "simplecov" +SimpleCov.start do + add_filter "/spec/" + enable_coverage :branch +end + +require "codecov" +SimpleCov.formatter = SimpleCov::Formatter::Codecov if ENV["CODECOV_TOKEN"] + require "bundler/setup" require "game_of_life" |
