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

undefined method _run_suite' for class Test::Unit::Runner' (NameError) #17

Open
pocman opened this issue Oct 27, 2015 · 1 comment
Open

Comments

@pocman
Copy link

pocman commented Oct 27, 2015

Hi,

I have this issue running ruby test.rb *

ruby test.rb ./csa_cpp
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit.rb:1:in `<top (required)>'
  test.rb:3:in `<main>'
MiniTest::Unit::TestCase is now Minitest::Test. From /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit/testcase.rb:8:in `<module:Unit>'
/Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit.rb:676:in `<class:Runner>': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
    from /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit.rb:261:in `<module:Unit>'
    from /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit.rb:15:in `<module:Test>'
    from /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/test/unit.rb:7:in `<top (required)>'
    from /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/poc/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from test.rb:3:in `<main>'

I can run ruby bench.rb *

@duboviy
Copy link

duboviy commented Feb 10, 2017

Need to be installed minitest 4.7.5 version

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