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

Test failures with Ruby 3.1 #173

@voxik

Description

@voxik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions