diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8681bba0..68580823 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,11 +70,11 @@ rspec: echo "Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/$CI_PIPELINE_ID/test_report" grep 'Finished in ' output grep -E '[[:digit:]]+ examples, ' output - grep -o -E '[[:digit:]]+ / [[:digit:]]+ LOC \(.*\) covered.' output + grep -m 1 -E 'Line Coverage:' output grep 'Time spent in factories' output echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K" exit $exit_code - coverage: '/LOC \((\d+\.\d+%)\) covered.$/' + coverage: '/Line Coverage:\s\d+\.\d+%/' artifacts: expire_in: 7 days paths: diff --git a/Gemfile b/Gemfile index 7194b72f..54790c6b 100644 --- a/Gemfile +++ b/Gemfile @@ -51,7 +51,7 @@ group :development, :test do gem 'database_cleaner-active_record', '~> 2.1' gem 'simplecov', '~> 0.22.0', require: false - gem 'simplecov-cobertura', '~> 2.1', require: false + gem 'simplecov-cobertura', '~> 3.0', require: false end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 4226942f..1fe7dca1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -107,7 +107,7 @@ GEM debug_inspector (1.2.0) declarative_policy (1.1.0) diff-lcs (1.6.2) - docile (1.4.0) + docile (1.4.1) drb (2.2.3) erb (5.0.1) erubi (1.13.1) @@ -278,7 +278,7 @@ GEM io-console (~> 0.5) request_store (1.5.1) rack (>= 1.4) - rexml (3.3.7) + rexml (3.4.1) rotp (6.3.0) rouge (4.5.2) rspec (3.13.0) @@ -363,10 +363,10 @@ GEM docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-cobertura (2.1.0) + simplecov-cobertura (3.0.0) rexml simplecov (~> 0.19) - simplecov-html (0.12.3) + simplecov-html (0.13.1) simplecov_json_formatter (0.1.4) stringio (3.1.7) test-prof (1.4.4) @@ -425,7 +425,7 @@ DEPENDENCIES seed-fu (~> 2.3) shoulda-matchers (~> 6.0) simplecov (~> 0.22.0) - simplecov-cobertura (~> 2.1) + simplecov-cobertura (~> 3.0) test-prof (~> 1.0) tucana (= 0.0.30) tzinfo-data