Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Test failures with Ruby 3.1 #173

Open
voxik opened this issue Mar 17, 2022 · 1 comment
Open

Test failures with Ruby 3.1 #173

voxik opened this issue Mar 17, 2022 · 1 comment

Comments

@voxik
Copy link

voxik commented Mar 17, 2022

With Ruby 3.1 landing in Fedora, there appears to be one test failure in Coveralls:

$ rspec -Ilib --tag '~if' spec

... snip ...

.........
An error occurred in an `after(:context)` hook.
Failure/Error:
  SimpleCov.start do
    add_filter do |source_file|
      source_file.filename =~ /spec/ && !(source_file.filename =~ /fixture/)
    end
  end
RuntimeError:
  coverage measurement is already setup
# /usr/share/gems/gems/simplecov-0.13.0/lib/simplecov.rb:48:in `start'
# /usr/share/gems/gems/simplecov-0.13.0/lib/simplecov.rb:48:in `start'
# ./spec/spec_helper.rb:21:in `setup_formatter'
# ./spec/coveralls/coveralls_spec.rb:104:in `block (2 levels) in <top (required)>'
...............
Finished in 0.32023 seconds (files took 0.93759 seconds to load)
44 examples, 0 failures, 1 error occurred outside of examples

While I we have quite old version of Coveralls, checking the upstream repository, coveralls_spec.rb neither spec_helper.rb were modified recently.

However, checking Ruby, there is one change in Ruby 3.1 which seems to be related:

ruby/ruby@86e3d77

@mathieujobin
Copy link

have you tried switching to https://github.com/tagliala/coveralls-ruby-reborn ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants