summaryrefslogtreecommitdiff
path: root/spec/simplecov_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r--spec/simplecov_env.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb
index 25ddf932d42..82236bb4201 100644
--- a/spec/simplecov_env.rb
+++ b/spec/simplecov_env.rb
@@ -1,5 +1,6 @@
require 'simplecov'
require 'active_support/core_ext/numeric/time'
+require_relative '../lib/gitlab/utils'
module SimpleCovEnv
extend self
@@ -16,8 +17,9 @@ module SimpleCovEnv
def configure_job
SimpleCov.configure do
if ENV['CI_JOB_NAME']
- coverage_dir "coverage/#{ENV['CI_JOB_NAME']}"
- command_name ENV['CI_JOB_NAME']
+ job_name = Gitlab::Utils.slugify(ENV['CI_JOB_NAME'])
+ coverage_dir "coverage/#{job_name}"
+ command_name job_name
end
if ENV['CI']