Class: Test::Unit::UI::Console::ColorizedTestRunner
- Inherits:
-
TestRunner
- Object
- TestRunner
- Test::Unit::UI::Console::ColorizedTestRunner
- Extended by:
- TestRunnerUtilities
- Defined in:
- lib/test-unit-ext/colorized-runner.rb
Constant Summary collapse
- SCHEMES =
{ :default => { "success" => Color.new("green", :bold => true), "failure" => Color.new("red", :bold => true), "pending" => Color.new("magenta", :bold => true), "notification" => Color.new("cyan", :bold => true), "error" => Color.new("yellow", :bold => true), }, }
Instance Method Summary collapse
-
#initialize(suite, output_level = NORMAL, io = STDOUT) ⇒ ColorizedTestRunner
constructor
A new instance of ColorizedTestRunner.
Constructor Details
#initialize(suite, output_level = NORMAL, io = STDOUT) ⇒ ColorizedTestRunner
Returns a new instance of ColorizedTestRunner.
20 21 22 23 24 25 |
# File 'lib/test-unit-ext/colorized-runner.rb', line 20 def initialize(suite, output_level=NORMAL, io=STDOUT) super @use_color = guess_color_availability @color_scheme = SCHEMES[:default] @reset_color = Color.new("reset") end |