9.3 Lisp Unit2
"A Test Framework for Common Lisp in the style of JUnit, designed and
implemented with simplicity of use in mind."
Lisp-unit2 is a Common Lisp library that supports unit testing. It is a new
version of a library of the lisp-unit library written by Chris Riesbeck.
Blog post by the author of Lisp-Unit2 announcing the new project and explaining
it a bit.
Features
- Written in portable Common Lisp
- Loadable with ASDF or Quicklisp
- Simple to define and run tests
- Redefine functions and macros without reloading tests - tests are recompiled
before each run and at definition time
- Tests have source-location for going to definition
- Supports testing: return values, printed output, macro expansions, and
conditions. Special support for testing floating and rational point numbers
- Running a single test returns a test-result object. Running many tests
returns a test-result-db
- Tests grouped and accessed by name, tag, and package of test name
- Signals for starting and completing test runs (both individually and as a
group)
Use
(ql:quickload :lisp-unit2)
or
(asdf:load-system :lisp-unit2)