Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 396 Bytes

README_STATS.rdoc

File metadata and controls

22 lines (15 loc) · 396 Bytes

Summary

Appends total test time, number of assertions and number of failures.

Examples

require 'nanotest'
require 'nanotest/stats'
include  Nanotest

assert { true  }
assert { true  }
assert { false }
assert { false }

outputs:

..FF
(stats_example.rb:007) assertion failed
(stats_example.rb:008) assertion failed

(0.000191 seconds) 4 assertions, 2 failures