Module: Minitest::TestProf
- Defined in:
- lib/minitest/test_prof_plugin.rb,
lib/minitest/base_reporter.rb,
lib/minitest/event_prof_formatter.rb,
lib/test_prof/event_prof/minitest.rb,
lib/test_prof/factory_doctor/minitest.rb
Overview
:nodoc:
Defined Under Namespace
Modules: FactoryDoctorIgnore Classes: BaseReporter, EventProfFormatter, EventProfReporter, FactoryDoctorReporter
Class Method Summary collapse
Class Method Details
.configure_options(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/minitest/test_prof_plugin.rb', line 8 def self.( = {}) .tap do |opts| opts[:event] = ENV["EVENT_PROF"] if ENV["EVENT_PROF"] opts[:rank_by] = ENV["EVENT_PROF_RANK"].to_sym if ENV["EVENT_PROF_RANK"] opts[:top_count] = ENV["EVENT_PROF_TOP"].to_i if ENV["EVENT_PROF_TOP"] opts[:per_example] = true if ENV["EVENT_PROF_EXAMPLES"] opts[:fdoc] = true if ENV["FDOC"] opts[:sample] = true if ENV["SAMPLE"] || ENV["SAMPLE_GROUPS"] end end |