We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c82258 + 2e72223 commit 7cf0e93Copy full SHA for 7cf0e93
test/test_helper.rb
@@ -38,8 +38,14 @@ def Minitest.after_run(&block)
38
end
39
40
41
-require 'capture_warnings'
42
-CaptureWarnings.new(_fail_build = true).execute!
+# If there's no failure info, try disabling capturing stderr:
+# `env CAPTURE_STDERR=false rake`
43
+# This is way easier than writing a Minitest plugin
44
+# for 4.x and 5.x.
45
+if ENV['CAPTURE_STDERR'] !~ /false|1/i
46
+ require 'capture_warnings'
47
+ CaptureWarnings.new(_fail_build = true).execute!
48
+end
49
50
require 'active_model_serializers'
51
0 commit comments