-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocstrings
74 lines (49 loc) · 2.29 KB
/
docstrings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
YARTY > ASDF System
Yare and Astounding Regression Tester: YARTY
*handle-errors* > variable
t: handle in tests; nil: decline to handle. Default is t.
*output* > variable
The stream testing info is print to.
This defaults to a *standard-output* synonym-stream.
(AUTORUN &key system) > function
Toggle whether asdf:test-system is automatically run when source is touched.
System should be a string or symbol designating a system name. Autorun
also binds *handle-errors* to t.
Touching files of a test-system will also trigger the tests if the
asdf setup described in YARTY's readme is used.
(CLEAR-TESTS &optional package) > function
Clear the tests for the given package, default to *package*.
If nil is given as an explicit argument, clear all tests for all
packages.
(DEFTEST name &body body) > macro
Define a function that will be called during RUN-TESTS.
Insert forms which should return truthy inside an EACH.
(DEFTEST/EACH name &body body) > macro
Like DEFTEST but wraps its body in an EACH.
(EACH &body forms) > macro
Test that each form returns truthy.
If any don't, set the current test to failing.
(FRESH-TEST system &key host port lisp) > function
Test on a fresh CCL or SBCL image. Assumes the userinit loads quicklisp.
(GRAPH-DURATIONS &rest packages) > function
Return a string which is a bar graph of the run time of each test in packages.
Experimental feature.
(RUN-TESTS &rest packages) > function
Runs all the tests defined by DEFTEST in the given packages.
Returns output suitable for use by cl-test-grid: either the
keyword :ok, or a list whose first element is the
keyword :failed-tests and whose second element is a list of the
names (as strings) of those tests.
(SIGNALS-A condition &body body) > macro
Returns true if body signals the condition.
(TEST-SYSTEM system &key quit) > function
Test the system. Either return the value of RUN-TESTS or quit the image.
Internally calls ASDF:TEST-SYSTEM. If quit is nil, then this returns
the combination of the results of any calls to RUN-TESTS made during
ASDF:TEST-SYSTEM.
If QUIT is true then it exits the image after testing. In this case
the exit code of the process indicates the status of the tests.
Exit Code Status
0 Tests Succeeded
1 Tests Failed
125 Could Not Test