Next: recording-changes Prev: recording-who-to-blame Up: april91-old-ideas Top: Top

0.9.2.2. Burying test cases in your document

The idea is that you can say: For this test `foo', the `<weird stuff in here>' would somehow say how to run the test, what should be fed to standard input (etc.), and what results to expect on standard output, standard error, and perhaps certain output files.

The idea is to put the (simple?) test cases right next to the code that will be exercised.

The problem is: tests can do pretty arbitrary things, and I don't see any neat way to encode that fact. Simply bunging full-blown shell scripts into the middle of your literate program hardly seems the solution. Hmmm.....

If we had them: test environments don't nest.

See ????? (ToDo) for a note on using hidden comments to highlight test information.