Here's some test code that fails to print the exception thrown from the before block:
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../../config/environment', __FILE__)
# must be a *Controller test to fail
describe PasswordsController do
describe 'heynow' do
describe 'something' do
it 'does something' do
minitest-spec-rails makes this describe block result in an ActionControllerTest subclass. This results in ActiveSupport::Testing::SetupAndTeardown::ForMiniTest being included in the test class. This module runs before callbacks around the entire runner.run() method. I think this means your before_test callback is never call (if the before block throws an exception), so your report recording isn't turned on yet.
What results is all green, no exception printed to log, but the test passed vs total test number doesn't match, final test count summary line does report that an error occurred, and rake test returns not-ok return code.
Fix the color of the progress bar on error
This should be fixed in 0.14.11. Thanks!