Skip to content

Commit 81499f2

Browse files
committed
Raise exceptions on *all* warnings
minitest/minitest@f0f17b9
1 parent af5c11b commit 81499f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ require 'minitest/test_task'
55
# * test:isolated : run tests independently to surface order dependencies
66
# * test:deps : (alias of test:isolated)
77
# * test:slow : run tests and reports the slowest 25
8-
Minitest::TestTask.create
8+
Minitest::TestTask.create do |t|
9+
t.extra_args << '-Werror' # Raise exceptions for warnings: https://github.com/minitest/minitest/commit/f0f17b9
10+
t.test_prelude = 'Warning[:performance] = true' # … including `performance` warnings which are off even with `-w`
11+
end

0 commit comments

Comments
 (0)