Adds undercover to the build file

This commit is contained in:
filipefurtad0
2024-08-05 18:38:37 +01:00
parent 657896cca9
commit 638b7dc374
3 changed files with 19 additions and 4 deletions

View File

@@ -86,6 +86,11 @@ jobs:
git show --no-patch # the commit being tested (which is often a merge due to actions/checkout@v3)
bin/rake knapsack_pro:rspec
- name: Check code coverage changes
run: |
bundle exec undercover --compare origin/master
models:
runs-on: ubuntu-22.04
services:
@@ -145,6 +150,11 @@ jobs:
run: |
bin/rake knapsack_pro:rspec
- name: Check code coverage changes
run: |
bundle exec undercover --compare origin/master
system_admin:
runs-on: ubuntu-22.04
services:
@@ -222,6 +232,11 @@ jobs:
path: tmp/capybara/screenshots/*.png
retention-days: 7
if-no-files-found: ignore
- name: Check code coverage changes
run: |
bundle exec undercover --compare origin/master
system_consumer:
runs-on: ubuntu-22.04

View File

@@ -974,7 +974,6 @@ DEPENDENCIES
sidekiq
sidekiq-scheduler
simplecov
simplecov-html
simplecov-lcov
spreadsheet_architect
spring

View File

@@ -7,9 +7,10 @@ ENV["RAILS_ENV"] ||= 'test'
require 'simplecov' if ENV["COVERAGE"]
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::LcovFormatter,
])
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.
new([
SimpleCov::Formatter::LcovFormatter,
])
require 'undercover'
require 'rubygems'