Method: SimpleCov::Configuration#at_exit
- Defined in:
- lib/simplecov/configuration.rb
#at_exit(&block) ⇒ Object
Gets or sets the behavior to process coverage results.
By default, it will call SimpleCov.result.format!
Configure with:
SimpleCov.at_exit do
puts "Coverage done"
SimpleCov.result.format!
end
193 194 195 196 197 198 |
# File 'lib/simplecov/configuration.rb', line 193 def at_exit(&block) return Proc.new unless running || block_given? @at_exit = block if block_given? @at_exit ||= proc { SimpleCov.result.format! } end |