diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 78a3d20..66650dd 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -29,4 +29,4 @@ jobs: with: bundler-cache: true - name: Run tests - run: bundle exec rspec + run: bundle exec rake rspec diff --git a/Gemfile b/Gemfile index c19b2d0..fd78604 100644 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,7 @@ group :development do end group :test do + gem 'coveralls_reborn', '~> 0.28' gem 'factory_bot', '~> 6.4' gem 'rspec', '~> 3.13' gem 'rspec-github', '~> 2.4' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6ffad27..1df472d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true -require 'factory_bot' - # Configure code coverage reporting. if ENV.fetch('COVERAGE', false) + require 'coveralls' require 'simplecov' + Coveralls.wear! SimpleCov.minimum_coverage 95 SimpleCov.start do add_filter '/spec/' @@ -14,6 +14,8 @@ end end +require 'factory_bot' + RSpec.configure do |config| config.include FactoryBot::Syntax::Methods config.shared_context_metadata_behavior = :apply_to_host_groups