MiniTest and "0 tests, 0 assertions, 0 failures, 0 errors"

Tagged minitest, test, ruby  Languages ruby

My test_helper.rb looked like this:

require 'minitest/autorun'
require 'app'

The output when running a unit test was this:

0 tests, 0 assertions, 0 failures, 0 errors

The solution was to move the minitest require:

require 'minitest/autorun'
require 'app'

Now my tests are run again when executing:

ruby test/functional/xxx_controller_test.rb