Class: Minitest::PrideIO
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/minitest/pride_plugin.rb |
Overview
Show your testing pride!
Constant Summary
-
ESC =
Start an escape sequence
"\e["
-
NND =
End the escape sequence
"#{ESC}0m"
Class Attribute Summary
-
.pride? ⇒ Boolean
readonly
Are we showing our testing pride?
Class Method Summary
-
.pride!
Activate the pride plugin.
Instance Attribute Summary
-
#io
readonly
The IO we're going to pipe through.
Instance Method Summary
-
#pride(string)
Color a string.
-
#print(o)
Wrap print to colorize the output.
Class Attribute Details
.pride? ⇒ Boolean
(readonly)
Are we showing our testing pride?
# File 'lib/minitest/pride_plugin.rb', line 35
def self.pride? @pride ||= false end
Class Method Details
.pride!
Activate the pride plugin. Called from both -p option and minitest/pride
# File 'lib/minitest/pride_plugin.rb', line 28
def self.pride! @pride = true end
Instance Attribute Details
#io (readonly)
The IO we're going to pipe through.
# File 'lib/minitest/pride_plugin.rb', line 46
attr_reader :io
Instance Method Details
#pride(string)
Color a string.
#print(o)
Wrap print to colorize the output.