testimony.new

testimony

new(description) -> tally

Make the tally for one suite

tally:that(name, fn) runs the case fn at once and counts it; tally:conclude() prints the counts, the skips with their reasons and the failures with their errors, then exits the process: 0 when nothing failed, 1 otherwise. The counts stand on tally.tests: run, passed, failed and skipped, with failures a list of { name, error } and skips a list of { name, reason }.