File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,12 @@ def self.plugin_rails_options(opts, options)
134
134
135
135
options [ :color ] = true
136
136
options [ :output_inline ] = true
137
+
138
+ opts . on do
139
+ if ::Rails ::TestUnit ::Runner . load_test_files
140
+ ::Rails ::TestUnit ::Runner . load_tests ( options . fetch ( :test_files , [ ] ) )
141
+ end
142
+ end
137
143
end
138
144
139
145
# Owes great inspiration to test runner trailblazers like RSpec,
@@ -142,10 +148,6 @@ def self.plugin_rails_init(options)
142
148
# Don't mess with Minitest unless RAILS_ENV is set
143
149
return unless ENV [ "RAILS_ENV" ] || ENV [ "RAILS_MINITEST_PLUGIN" ]
144
150
145
- if ::Rails ::TestUnit ::Runner . load_test_files
146
- ::Rails ::TestUnit ::Runner . load_tests ( options . fetch ( :test_files , [ ] ) )
147
- end
148
-
149
151
unless options [ :full_backtrace ]
150
152
# Plugin can run without Rails loaded, check before filtering.
151
153
if ::Rails . respond_to? ( :backtrace_cleaner )
You can’t perform that action at this time.
0 commit comments