Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnatoli Babenia <anatoli@rainforce.org>2022-10-14 10:01:29 +0300
committerEvan Read <eread@gitlab.com>2022-10-14 10:01:29 +0300
commit25ab77e7a8d1bdf91eeccb8a69f85ba38b6b489d (patch)
tree0a635aa97eba8800732eac0fdd834ce10306b924 /spec
parentc41d28d9e1dd028faec867479fd1194e46cebfc8 (diff)
Add SimpleCov for code coverage
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 762c465b..29762f59 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,12 @@
# frozen_string_literal: true
+require 'simplecov'
+require 'simplecov-cobertura'
+
+unless ENV['SIMPLECOV'] == '0'
+ SimpleCov.start
+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
+end
$LOAD_PATH << 'lib/'
require 'rspec-parameterized'