Unit tests for Common Lisp with FiveAM
10 steps · about 3 h · Intermediate
- The Common Lisp Cookbook – Testing the code (guide, Common Lisp Cookbook, 20 min)
It gives you the overall picture of testing in Common Lisp, with FiveAM as the main example, before you write any tests.
- common-lisp Tutorial => Using FiveAM (tutorial, RIP Tutorial, 5 min)
A short example to load FiveAM and write your first passing and failing tests.
- fiveam/t/example.lisp (repo, lispci/fiveam on GitHub, 15 min)
This is the library's own commented walkthrough of tests, run!, explain! and suites, so you can read it and follow along in a REPL.
- Common Lisp Study Group: fiveam (video, YouTube, 45 min)
Watching someone explore FiveAM live shows the interactive workflow and the usual mistakes.
- fiveam - Regression Testing Framework (reference, common-lisp-libraries, 20 min)
It covers suites, def-test options and test dependencies in one place.
- fiveam (reference, Quickdocs, 5 min)
It points you to the docstrings as the canonical documentation and shows where the project lives.
- How to write test fixtures for FiveAM. (blog, darkchestnut.com, 10 min)
Once your tests share setup code, this shows how FiveAM fixtures work as macros.
- Continuous Integration (doc, lisp-lang.org, 15 min)
It shows the settings that make FiveAM failures stop a CI build.
- fiveam/t/tests.lisp (repo, lispci/fiveam on GitHub, 20 min)
FiveAM's own tests show real uses of :depends-on, :fixture and skipped results.
- Comparison of Common Lisp Testing Frameworks (article, Sabra Crolleton, 25 min)
It helps you judge FiveAM's limits, such as its fixtures and closures, against other Lisp test frameworks.