Module: Minitest::Heat
- Defined in:
- lib/minitest/heat.rb,
lib/minitest/heat/hit.rb,
lib/minitest/heat/map.rb,
lib/minitest/heat/issue.rb,
lib/minitest/heat/timer.rb,
lib/minitest/heat/output.rb,
lib/minitest/heat/source.rb,
lib/minitest/heat/results.rb,
lib/minitest/heat/version.rb,
lib/minitest/heat/location.rb,
lib/minitest/heat/backtrace.rb,
lib/minitest/heat/locations.rb,
lib/minitest/heat/output/map.rb,
lib/minitest/heat/output/issue.rb,
lib/minitest/heat/output/token.rb,
lib/minitest/heat/configuration.rb,
lib/minitest/heat/output/marker.rb,
lib/minitest/heat/output/results.rb,
lib/minitest/heat/output/backtrace.rb,
lib/minitest/heat/output/source_code.rb,
lib/minitest/heat/backtrace/line_count.rb,
lib/minitest/heat/backtrace/line_parser.rb
Overview
Custom Minitest reporter focused on generating output designed around efficiently identifying issues and potential solutions
-
Colorize the Output
-
What files had the most errors?
-
Show the most impacted areas first.
-
Show lowest-level (most nested code) frist.
Pulls from existing reporters:
https://github.com/seattlerb/minitest/blob/master/lib/minitest.rb#L554
Lots of insight from:
http://www.monkeyandcrow.com/blog/reading_ruby_minitest_plugin_system/
And a good example available at:
https://github.com/adamsanderson/minitest-snail
Pulls from minitest-color as well:
https://github.com/teoljungberg/minitest-color/blob/master/lib/minitest/color_plugin.rb
Defined Under Namespace
Classes: Backtrace, Configuration, Hit, Issue, Location, Locations, Map, Output, Results, Source, Timer
Constant Summary collapse
- VERSION =
'1.2.0'
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
40 41 42 |
# File 'lib/minitest/heat.rb', line 40 def self.configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
48 49 50 |
# File 'lib/minitest/heat.rb', line 48 def self.configure yield(configuration) end |
.reset ⇒ Object
44 45 46 |
# File 'lib/minitest/heat.rb', line 44 def self.reset @configuration = Configuration.new end |