Skip to content

Commit

Permalink
Enable coverage for forked processes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 18, 2024
1 parent 22706af commit 84ff4e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Generate coverage report
run: |
COVERAGE=true bundle exec qt -p 1
COVERAGE=true bundle exec qt
- name: Setup Pages
uses: actions/configure-pages@v2
Expand Down
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ group :test do
gem "sus"
gem "quickdraw", github: "joeldrapper/quickdraw"
gem "simplecov", require: false
if RUBY_ENGINE == "ruby" && RUBY_VERSION[0] > "3"
gem "async"
end
gem "async" if RUBY_ENGINE == "ruby"
gem "concurrent-ruby"
gem "selenium-webdriver"
end
Expand Down
2 changes: 2 additions & 0 deletions config/quickdraw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
SimpleCov.start do
command_name "quickdraw"
enable_coverage_for_eval
enable_for_subprocesses true
enable_coverage :branch
add_filter %r{^/fixtures/}

Expand All @@ -17,6 +18,7 @@
end

Bundler.require :test

require "phlex"

# Previous content of test helper now starts here
Expand Down

0 comments on commit 84ff4e6

Please sign in to comment.