lisp-unit
2017-01-24
Common Lisp library that supports unit testing.
Upstream URL
Author
Thomas M. Hermann <thomas.m.hermann@odonata-research.com>
License
MIT
lisp-unit
lisp-unit is a Common Lisp library that supports unit testing. It is an extension of the library written by Chris Riesbeck. There is a long history of testing packages in Lisp, usually called "regression" testers. More recent packages in Lisp and other languages have been inspired by JUnit for Java.
Documentation is located on the project wiki.
Features
- Written in portable Common Lisp
- Loadable as a single file
- Loadable with ASDF or Quicklisp
- Simple to define and run tests
- Redefine functions and macros without reloading tests
- Test return values, printed output, macro expansions, and conditions
- Fine-grained control over the testing output
- Store all test results in a database object that can be examined
- Group tests by package for modularity
- Group tests using tags
- Signal test completion and return results with the condition.
Extensions
- Floating point predicates
- Test Anything Protocol output
How to use lisp-unit
The core definitions of lisp-unit may be used by loading the single file 'lisp-unit.lisp'. To use the extensions, lisp-unit must be loaded using either Quicklisp or ASDF.
- Load (or compile and load) as a single file :
(load "lisp-unit")
. - Load using Quicklisp :
(ql:quickload :lisp-unit)
. - Load using ASDF :
(asdf:load-system :lisp-unit)
.
Development Plan
- Version 1.1.0 : Summarize test from multiple packages
- Version 1.2.0 : Improve integration with IDE (mainly SLIME)
Acknowledgments
Contributions to lisp-unit are noted in the wiki. Please let me know if any contributions have not been acknowledged.
Dependencies (0)
Dependents (49)
- antik
- basic-binary-ipc
- chronicity
- cl-base32
- cl-creditcard
- cl-dct
- cl-editdistance
- cl-env
- clesh
- cl-generator
- cl-html-readme
- climc
- cl-junit-xml
- cl-lambdacalc
- cl-lastfm
- cl-megolm
- clml
- cl-mongo
- cl-qrencode
- cl-sophia
- cl-string-match
- cl-threadpool
- codata-recommended-values
- dlist
- ernestine
- floating-point
- froute
- generators
- gute
- hh-aws
- hh-redblack
- house
- lisp-executable
- minheap
- oneliner
- open-location-code
- parse-float
- parseltongue
- persistent-tables
- random-access-lists
- read-number
- recursive-regex
- rs-dlx
- rs-json
- sycamore
- ttt
- validate-list
- vgplot
- whofields