CL-TEST-MORE

Yet Another Unit Testing Framework for Common Lisp

View the Project on GitHub fukamachi/cl-test-more

CL-TEST-MORE is inspired by Test::More, a module of Perl.

The advantages of CL-TEST-MORE are:

Synopsis

(plan 9)

;; check if first argument is true
(ok (eq got expected) "Description")

;; check if "got" equals "expected"
(is got expected "Description")
(isnt got expected "Description")
;; with :test function
(is got expected "Description" :test #'string=)

;; rather than print *standard-output* "# This is just a comment\n"
(diag "This is just a comment")

;; macro expansion
(is-expand (got macro) (expected :like "this") "Description")

;; output
(is-print (write-line "aiueo") "aiueo\n" "Description")

;; functions always pass or fail
(pass "Description")
(fail "Description")

;; Don't forget this
(finalize)

Installation

Quicklisp

(ql:quickload :cl-test-more)

ASDF-Install

Functions

Change default test function

Test Macros

Change output stream

Bugs

Please report any bugs to e.arrows@gmail.com, or post an issue to GitHub.

License

Copyright (c) 2010-2011 Eitarow Fukamachi <e.arrows@gmail.com>
CL-TEST-MORE is freely distributable under the MIT License (http://www.opensource.org/licenses/mit-license).