micro_test 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mt +2 -1
- metadata +1 -1
data/bin/mt
CHANGED
@@ -7,9 +7,10 @@ require File.join(lib_path, "micro_test", "color")
|
|
7
7
|
include MicroTest::Color
|
8
8
|
|
9
9
|
opts = Slop.parse(:strict => true, :help => true) do
|
10
|
+
formatters = Dir[File.join(lib_path, "micro_test", "formatters", "*.rb")].map {|f| f[f.rindex("/") + 1..-4]}
|
10
11
|
banner "mt [options]"
|
11
12
|
on :p, :path, "The path to the test directory or file.", :argument => true
|
12
|
-
on :f, :formatter, "The name of the formatter to use.", :argument => true
|
13
|
+
on :f, :formatter, "The name of the formatter to use. [#{green formatters.join(", ")}]", :argument => true
|
13
14
|
on :pry, "Starts a pry session whenever tests fail."
|
14
15
|
on :demo, "Runs the MicroTest test suite."
|
15
16
|
end
|