5 ;;;; FiveAM is a testing framework. It takes care of all the boring
6 ;;;; bookkeeping associated with managing a test framework allowing
7 ;;;; the developer to focus on writing tests and code.
9 ;;;; FiveAM was designed with the following premises:
11 ;;;; - Defining tests should be about writing tests, not
12 ;;;; infrastructure. The developer should be able to focus on what
13 ;;;; they're testing, not the testing framework.
15 ;;;; - Interactive testing is the norm. Common Lisp is an interactive
16 ;;;; development environment, the testing environment should allow the
17 ;;;; developer to quickly and easily redefine, change, remove and run
20 (defpackage :it.bese.FiveAM
21 (:use :common-lisp :it.bese.arnesi)
23 (:export ;; creating tests and test-suites
67 #:*run-test-when-defined*
70 #:*verbose-failures*))
72 ;;;; You can use #+5am to put your test-defining code inline with your
73 ;;;; other code - and not require people to have fiveam to run your
76 (pushnew :5am *features*)
78 ;;;;@include "check.lisp"
80 ;;;;@include "random.lisp"
82 ;;;;@include "fixture.lisp"
84 ;;;;@include "test.lisp"
86 ;;;;@include "suite.lisp"
88 ;;;;@include "run.lisp"
90 ;;;;@include "explain.lisp"
94 ;;;; This documentaion was written by Edward Marco Baringer
95 ;;;; <mb@bese.it> and generated by qbook.
99 ;;;; Copyright (c) 2002-2003, Edward Marco Baringer
100 ;;;; All rights reserved.
102 ;;;; Redistribution and use in source and binary forms, with or without
103 ;;;; modification, are permitted provided that the following conditions are
106 ;;;; - Redistributions of source code must retain the above copyright
107 ;;;; notice, this list of conditions and the following disclaimer.
109 ;;;; - Redistributions in binary form must reproduce the above copyright
110 ;;;; notice, this list of conditions and the following disclaimer in the
111 ;;;; documentation and/or other materials provided with the distribution.
113 ;;;; - Neither the name of Edward Marco Baringer, nor BESE, nor the names
114 ;;;; of its contributors may be used to endorse or promote products
115 ;;;; derived from this software without specific prior written permission.
117 ;;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
118 ;;;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
119 ;;;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
120 ;;;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
121 ;;;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
122 ;;;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
123 ;;;; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
124 ;;;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
125 ;;;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
126 ;;;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
127 ;;;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE