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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants