Module: Minitest
- Defined in:
- lib/minitest/profile_plugin.rb
Defined Under Namespace
Classes: ProfileReporter
Class Method Summary collapse
Class Method Details
.plugin_profile_init(options) ⇒ Object
11 12 13 |
# File 'lib/minitest/profile_plugin.rb', line 11 def self.plugin_profile_init() self.reporter << ProfileReporter.new() if [:profile] end |
.plugin_profile_options(opts, options) ⇒ Object
5 6 7 8 9 |
# File 'lib/minitest/profile_plugin.rb', line 5 def self.(opts, ) opts.on("--profile", "Display list of slowest tests") do |p| [:profile] = true end end |