Module: Minitest
- Defined in:
- lib/minitest/documentation.rb,
lib/minitest/documentation_plugin.rb
Defined Under Namespace
Classes: DocumentationReporter
Class Method Summary collapse
Class Method Details
.plugin_documentation_init(options) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/minitest/documentation_plugin.rb', line 14 def self.plugin_documentation_init if DocumentationReporter.documentation? || DocumentationReporter.color? io = .delete(:io) || $stdout self.reporter.reporters.reject! {|o| o.is_a? ProgressReporter } self.reporter.reporters << DocumentationReporter.new(io, ) end end |
.plugin_documentation_options(opts, options) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/minitest/documentation_plugin.rb', line 4 def self. opts, opts.on "--documentation", "Documentation formatter" do DocumentationReporter.documentation! end opts.on "--color", "Colorize the output" do DocumentationReporter.color! end end |