Skip to content

Commit

Permalink
Enable branch-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Nov 3, 2023
1 parent 2824f5d commit 5b73c91
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
- uses: actions/checkout@v2
- name: bundle install
run: bundle install -j$(nproc) --retry 3
- name: install simplecov-fork only for minitest with coverage
run: |
gem install specific_install
gem specific_install https://github.com/exoego/simplecov.git branch-fix
if: matrix.coverage == 'coverage'
- run: bundle exec rspec
timeout-minutes: 1
- name: Upload coverage reports
Expand Down
1 change: 1 addition & 0 deletions .simplecov_spawn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
SimpleCov::Formatter::CoberturaFormatter,
])
SimpleCov.start do
enable_coverage :branch
add_filter '/spec/'
add_filter '/scripts/'
end
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem 'roda'
gem 'rspec-rails'

group :test do
gem 'simplecov'
gem 'simplecov', git: 'https://github.com/exoego/simplecov.git', branch: 'branch-fix'
gem 'simplecov-cobertura'
gem 'super_diff'
end
Expand Down
3 changes: 1 addition & 2 deletions scripts/rspec_with_simplecov
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ begin
require 'simplecov'

SimpleCov.start do
# Flaky :(
# enable_coverage :branch
enable_coverage :branch
end
end
rescue LoadError
Expand Down

0 comments on commit 5b73c91

Please sign in to comment.