Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
taitus committed Nov 13, 2024
1 parent 96e4ed4 commit 5d858a7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: tests
on:
push:
branches:
- master
pull_request:
branches-ignore:
- i18n_master
on: push

permissions:
contents: read
Expand Down Expand Up @@ -61,7 +55,10 @@ jobs:
KNAPSACK_PRO_CI_NODE_INDEX: ${{ matrix.ci_node_index }}
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
KNAPSACK_PRO_LOG_LEVEL: info
run: bin/knapsack_pro_rspec
run: bin/knapsack_pro_rspec --format documentation

- name: Run entire suite for RSpec Tracer analysis
run: bin/rspec --format documentation
- name: Coveralls Parallel
if: ${{ env.TEST_COVERAGE == 1 }}
uses: coverallsapp/github-action@master
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ group :test do
gem "selenium-webdriver", "~> 4.25.0"
gem "simplecov", "~> 0.22.0", require: false
gem "simplecov-lcov", "~> 0.8.0", require: false
gem 'rspec-tracer', require: false
end

group :development do
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ GEM
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
rspec-tracer (1.0.0)
docile (~> 1.1, >= 1.1.0)
rspec-core (~> 3.6, >= 3.6.0)
rubocop (1.66.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -775,6 +778,7 @@ DEPENDENCIES
rinku (~> 2.0.6)
ros-apartment (~> 2.11.0)
rspec-rails (~> 7.0.1)
rspec-tracer
rubocop (~> 1.66.1)
rubocop-capybara (~> 2.21.0)
rubocop-factory_bot (~> 2.26.1)
Expand Down
7 changes: 7 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start("rails")
end

require "rspec/tracer"

RSpecTracer.configure do |config|
config.storage_path = "./tmp/rspec_tracer_data"
end

require File.expand_path("../../config/environment", __FILE__)
abort("The Rails environment is running in production mode!") if Rails.env.production?

Expand Down

0 comments on commit 5d858a7

Please sign in to comment.