Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Enable branch-coverage #125

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading