summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>2000-03-22 21:22:39 +0000
committerJim Blandy <jimb@red-bean.com>2000-03-22 21:22:39 +0000
commit70b83fe223ef7df37b7e48c717fdafd3fc4a3df6 (patch)
treec7512baf0b61bca955a99383dd29ee32af2f6419
parent05c4ba00552baae92f5ce064ae062e8862def686 (diff)
Add some test suite philosophy.
-rw-r--r--test-suite/README28
1 files changed, 26 insertions, 2 deletions
diff --git a/test-suite/README b/test-suite/README
index 3ec7f3617..22950e77e 100644
--- a/test-suite/README
+++ b/test-suite/README
@@ -5,8 +5,6 @@ To run these tests, you will need a version of Guile more recent than
15 Feb 1999 --- the tests use the (ice-9 and-let*) and (ice-9
getopt-long) modules, which were added to Guile around then.
-Right now, we only have tests for I/O ports.
-
To run the test suite, you'll need to:
- edit the path to the guile interpreter in `guile-test', and
- edit the paths in `paths.scm', so `guile-test' can find the test
@@ -23,3 +21,29 @@ Please write more Guile tests, and send them to bug-guile@gnu.org.
We'll merge them into the distribution. All test suites must be
licensed for our use under the GPL, but I don't think I'm going to
collect assignment papers for them.
+
+
+
+Some test suite philosophy:
+
+GDB has an extensive test suite --- around 6300 tests. Every time the
+test suite catches a bug, it's great.
+
+GDB is so complicated that folks are often unable to get a solid
+understanding of the code before making a change --- we just don't
+have time. You'll see people say things like, "Here's a fix for X; it
+doesn't cause any regressions." The subtext is, I made a change that
+looks reasonable, and the test suite didn't complain, so it must be
+okay.
+
+I think this is terrible, because it suggests that the writer is using
+the test suite as a substitute for having a rock-solid explanation of
+why their changes are correct.
+
+
+Jim's rule for test suites:
+
+Every test suite failure should be a complete, mysterious surprise,
+never a possibility you were prepared for. Any other attitude
+indicates that you're using the test suite as a crutch, which you need
+only because your understanding is weak.