railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.88k stars 2.25k forks source link

Unable to run specs #3568

Closed pcai closed 1 year ago

pcai commented 1 year ago

Describe the bug The specs seem to be missing some setup instructions.

Reproduction steps

The specs will fail.

Expected behavior

The specs run.

Additional context

example stacktrace:

An error occurred while loading ./spec/rails_admin/version_spec.rb.
Failure/Error:
  SimpleCov.start do
    add_filter '/spec/'
    add_filter '/vendor/bundle/'
  end

RuntimeError:
  coverage measurement is already setup
# /usr/local/rvm/gems/ruby-3.1.2/gems/simplecov-0.21.2/lib/simplecov.rb:354:in `start'
# /usr/local/rvm/gems/ruby-3.1.2/gems/simplecov-0.21.2/lib/simplecov.rb:354:in `start_coverage_with_criteria'
# /usr/local/rvm/gems/ruby-3.1.2/gems/simplecov-0.21.2/lib/simplecov.rb:343:in `start_coverage_measurement'
# /usr/local/rvm/gems/ruby-3.1.2/gems/simplecov-0.21.2/lib/simplecov.rb:59:in `start'
# ./spec/spec_helper.rb:20:in `<top (required)>'
# ./spec/rails_admin/version_spec.rb:4:in `require'
# ./spec/rails_admin/version_spec.rb:4:in `<top (required)>'

I am hunting around in https://github.com/railsadminteam/rails_admin/actions/runs/3403727172/workflow to see if there are any missed setup steps and it looks like there is a default value for the test matrix, but it appears there are a lot more setup steps involved to get the tests running than listed in the documentation.