GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
When running m test/unit/game_test.rb I'm getting:
No tests found on line 0. Valid tests to run:
Same thing occurs when I try with a given line
No tests found on line 39. Valid tests to run:
I don't understand what I am doing wrong, did I missed something from the doc?
Thanks for your help.
@qrush any ideas?
I think I found the cause of the issue. I am using Test::Unit and it appears the gem does not work with it anymore.
Test::Unit::TestCase.test_suites is not a defined method
This method is never called in my case :
suites = MiniTest::Unit::TestCase.test_suites
suites = Test::Unit::TestCase.test_suites
As I have ruby 1.9.3 minitest is defined, so suites = , that's why I did not get the exception and as I don't use minitest directly there's no tests to find.
suites = 
The solution would be to change the order of if conditions and replace the the Test::Unit::TestCase.test_suites but I could not figure out what to call instead.
I'll try to make something up if other people get the same problem, otherwise switching to minitest seems quicker.
I have a similar issue. m test/integration/foo_test.rb runs just fine in the gemset.
If I try running that under bundle exec, bundle exec m test/integration/foo_test.rb, it dies with:
/Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:229:in suites': undefined methodtest_suites' for Test::Unit::TestCase:Class (NoMethodError)
from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:251:in tests' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:179:inexecute'
from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:120:in run' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:105:inrun'
from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/bin/m:4:in <top (required)>' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/bin/m:19:inload'
from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/bin/m:19:in `
suites': undefined method
tests' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:179:in
run' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/gems/m-1.2.1/lib/m.rb:105:in
<top (required)>' from /Users/claco/.rvm/gems/ruby-1.9.3-p125@bitsapi/bin/m:19:in
what's in your gemset ? ruby version and test frameworks
what's in your gemfile? ruby version and test frameworks
This should be fixed. Please open another issue if not.