Remove export of IN-SUITE*.
[fiveam.git] / src / package.lisp
1 ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
2
3 ;;;; * Introduction
4
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.
8
9 ;;;; FiveAM was designed with the following premises:
10
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.
14
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
18 ;;;; tests.
19
20 (defpackage :it.bese.fiveam
21   (:use :common-lisp :alexandria)
22   (:nicknames :5am :fiveam)
23   #+sb-package-locks
24   (:lock t)
25   (:export
26    ;; creating tests and test-suites
27    #:make-suite
28    #:def-suite
29    #:in-suite
30    #:make-test
31    #:test
32    #:def-test
33    #:get-test
34    #:rem-test
35    #:test-names
36    ;; fixtures
37    #:make-fixture
38    #:def-fixture
39    #:with-fixture
40    #:get-fixture
41    #:rem-fixture
42    ;; running checks
43    #:is
44    #:is-every
45    #:is-true
46    #:is-false
47    #:signals
48    #:finishes
49    #:skip
50    #:pass
51    #:fail
52    #:*test-dribble*
53    #:for-all
54    #:*num-trials*
55    #:*max-trials*
56    #:gen-integer
57    #:gen-float
58    #:gen-character
59    #:gen-string
60    #:gen-list
61    #:gen-tree
62    #:gen-buffer
63    #:gen-one-element
64    ;; running tests
65    #:run
66    #:run-all-tests
67    #:run-all-test-suites
68    #:explain
69    #:explain!
70    #:run!
71    #:run-all-tests!
72    #:run-all-test-suites!
73    #:debug!
74    #:!
75    #:!!
76    #:!!!
77    #:*run-test-when-defined*
78    #:*debug-on-error*
79    #:*debug-on-failure*
80    #:*verbose-failures*
81    #:results-status
82    ;; introspection
83    #:list-all-suites))
84
85 ;;;; You can use #+5am to put your test-defining code inline with your
86 ;;;; other code - and not require people to have fiveam to run your
87 ;;;; package.
88
89 (pushnew :5am *features*)
90
91 ;;;;@include "check.lisp"
92
93 ;;;;@include "random.lisp"
94
95 ;;;;@include "fixture.lisp"
96
97 ;;;;@include "test.lisp"
98
99 ;;;;@include "suite.lisp"
100
101 ;;;;@include "run.lisp"
102
103 ;;;;@include "explain.lisp"
104
105 ;;;; * Colophon
106
107 ;;;; This documentaion was written by Edward Marco Baringer
108 ;;;; <mb@bese.it> and generated by qbook.
109
110 ;;;; ** COPYRIGHT
111
112 ;;;; Copyright (c) 2002-2003, Edward Marco Baringer
113 ;;;; All rights reserved.
114
115 ;;;; Redistribution and use in source and binary forms, with or without
116 ;;;; modification, are permitted provided that the following conditions are
117 ;;;; met:
118
119 ;;;;  - Redistributions of source code must retain the above copyright
120 ;;;;    notice, this list of conditions and the following disclaimer.
121
122 ;;;;  - Redistributions in binary form must reproduce the above copyright
123 ;;;;    notice, this list of conditions and the following disclaimer in the
124 ;;;;    documentation and/or other materials provided with the distribution.
125
126 ;;;;  - Neither the name of Edward Marco Baringer, nor BESE, nor the names
127 ;;;;    of its contributors may be used to endorse or promote products
128 ;;;;    derived from this software without specific prior written permission.
129
130 ;;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
131 ;;;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
132 ;;;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
133 ;;;; A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT
134 ;;;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
135 ;;;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
136 ;;;; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
137 ;;;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
138 ;;;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
139 ;;;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
140 ;;;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE