Module: Minitest

Defined in:
lib/minitest/naga.rb,
lib/minitest/naga/cli.rb,
lib/minitest/naga_plugin.rb,
lib/minitest/naga/version.rb,
lib/minitest/naga/naga_reporter.rb

Defined Under Namespace

Modules: Naga Classes: NagaReporter

Class Method Summary collapse

Class Method Details

.plugin_naga_init(options) ⇒ Object



24
25
26
# File 'lib/minitest/naga_plugin.rb', line 24

def self.plugin_naga_init(options)
  Minitest.reporter << NagaReporter.new(options[:io], options)
end

.plugin_naga_options(opts, options) ⇒ Object



18
19
20
21
22
# File 'lib/minitest/naga_plugin.rb', line 18

def self.plugin_naga_options(opts, options)
  opts.on "--naga", "Run tests with Naga." do
    options[:naga] = true
  end
end