diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95480faa..4c14e074 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: pipeline: runs-on: ubuntu-latest steps: - - uses: Taucher2003/GitLab-Pipeline-Action@1.3.0 + - uses: Taucher2003/GitLab-Pipeline-Action@1.4.1 name: Run pipeline id: pipeline with: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c869c2da..72e124d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,8 @@ rspec: extends: - .rails stage: test + variables: + FPROF: '1' script: - bundle exec rspec --format doc --format RspecJunitFormatter --out rspec.xml - | diff --git a/Gemfile b/Gemfile index 22d34594..77256e72 100644 --- a/Gemfile +++ b/Gemfile @@ -41,6 +41,7 @@ group :development, :test do gem 'rspec-rails', '~> 6.0' gem 'factory_bot_rails', '~> 6.2' + gem 'test-prof', '~> 1.0' gem 'shoulda-matchers', '~> 5.3' diff --git a/Gemfile.lock b/Gemfile.lock index b3cfd851..5f0ac124 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -296,6 +296,7 @@ GEM simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) stringio (3.1.0) + test-prof (1.3.1) thor (1.3.0) timeout (0.4.1) tzinfo (2.0.6) @@ -336,6 +337,7 @@ DEPENDENCIES sidekiq (~> 7.1) simplecov (~> 0.22.0) simplecov-cobertura (~> 2.1) + test-prof (~> 1.0) tzinfo-data RUBY VERSION diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 8c1030af..ae2a9639 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -10,6 +10,7 @@ require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! require 'factory_bot' +require 'test_prof/factory_prof/nate_heckler' require 'sidekiq/testing' Sidekiq.logger.level = Logger::WARN # Requires supporting ruby files with custom matchers and macros, etc, in