tapered Build Status Coverage

Synopsis

Very minimal tap testing for Lua. Arguably too minimal.

Assertions

The message parameter is always optional. Brief messages help make test output clearer to readers, but are not needed if the output goes straight to another program for parsing.

Helper method

A method is available to show how many tests were run. (This output is required for TAP compliance, which may matter in some cases.)

Varia

The module provides four informational functions that return strings. They should be self-explanatory.

Credits

For the same method I took ideas and code from Penlight, Underscore, luassert, and cwtest. I thank all the people who worked on those.

Indirect inspirations include knock, Test::More, and bats—not so much for code as for ideas about testing and simplicity.

Thanks in particular to Pierre Chapuis for help with ideas and getting continuous integration for tapered.

An anonymous email showed me that my setup and teardown methods had a logical flaw. As a result, I’ve removed those methods. I appreciate the report.

All the mistakes are mine. See version history for release details.


© 2012-2017 Peter Aronoff. BSD 3-Clause license; see the license for details.