GOOPS cosmetics
[bpt/guile.git] / test-suite / README
CommitLineData
000ee07f
JB
1This directory contains some tests for Guile, and some generic test
2support code.
3
216aef15
JB
4To run these tests, you will need a version of Guile more recent than
515 Feb 1999 --- the tests use the (ice-9 and-let*) and (ice-9
6getopt-long) modules, which were added to Guile around then.
7
1ff7abbe
DH
8For information about how to run the test suite, read the usage
9instructions in the comments at the top of the guile-test script.
000ee07f
JB
10
11You can reference the file `lib.scm' from your own code as the module
12(test-suite lib); it also has comments at the top and before each
13function explaining what's going on.
14
15Please write more Guile tests, and send them to bug-guile@gnu.org.
88f5ea45
NJ
16We'll merge them into the distribution. All test suites must be
17licensed for our use under the GPL, but I don't think I'm going to
18collect assignment papers for them.
70b83fe2
JB
19
20
21
22Some test suite philosophy:
23
24GDB has an extensive test suite --- around 6300 tests. Every time the
25test suite catches a bug, it's great.
26
27GDB is so complicated that folks are often unable to get a solid
28understanding of the code before making a change --- we just don't
29have time. You'll see people say things like, "Here's a fix for X; it
30doesn't cause any regressions." The subtext is, I made a change that
31looks reasonable, and the test suite didn't complain, so it must be
32okay.
33
34I think this is terrible, because it suggests that the writer is using
35the test suite as a substitute for having a rock-solid explanation of
b159fc3c
JB
36why their changes are correct. The problem is that any test suite is
37woefully incomplete. Diligent reasoning about code can catch corner
38conditions or limitations that no test suite will ever find.
39
70b83fe2
JB
40
41
42Jim's rule for test suites:
43
44Every test suite failure should be a complete, mysterious surprise,
45never a possibility you were prepared for. Any other attitude
46indicates that you're using the test suite as a crutch, which you need
47only because your understanding is weak.