From 1ebfff7a70e28e18d1bf3b760dd386eac84a9aff Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Thu, 5 Sep 2024 13:08:45 +0100 Subject: [PATCH] test: resolving failing test invocation After adjusting the `make test` target to use `rails` instead of `rake` as it did initially, when running the target the console would error with: > `require': cannot load such file -- simplecov (LoadError) Adding `, require: false` to the 'simplecov', '0.22.0' call allows the tests to run and complete: ```sh Finished in 0.911783s, 174.3836 runs/s, 433.2171 assertions/s. 159 runs, 395 assertions, 0 failures, 0 errors, 0 skips ``` --- Gemfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index e5c746ba..ed11cbf4 100644 --- a/Gemfile +++ b/Gemfile @@ -64,7 +64,7 @@ group :test do # gem 'minitest-spec-rails' gem 'mocha' gem 'selenium-webdriver' - gem 'simplecov', '0.22.0' + gem 'simplecov', '0.22.0', require: false gem 'vcr' end diff --git a/Makefile b/Makefile index d12ec5d1..96d13711 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ tag: test: assets @echo "Running unit tests ..." - @./bin/bundle exec rake test + @./bin/rails test vars: @echo "Docker: ${REPO}:${TAG}"