Reputation: 2837
I've been following along the Rails Tutorial and I'm trying to incorporate the Minitest Reporters gem to my project as per instructions on section 3.7.1
So, test/test_helper.rb:
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require "minitest/reporters"
Minitest::Reporters.use!
And the Gemfile:
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
I was able to run bundle install --without production
normally. Everything else in the app (including tests) runs smoothly but I don't get the same look/feel as in the tutorial:
How can I achieve this?
Upvotes: 1
Views: 1463
Reputation: 2837
After a few days of searching around I found out that this got fixed on the latest release on the Master branch in Github repository (rails/rails).
Props to Prathamesh Sonpatki
Upvotes: 2
Reputation: 111
This is what I've used with newer rails inside test_helper.rb (not sure if I've tried it in rails5):
require "minitest/reporters"
Minitest::Reporters.use!(Minitest::Reporters::ProgressReporter.new,ENV,Minitest.backtrace_filter)
Upvotes: 0