Quicktest came out of my dabbling in the D programming language, which allows you to place testing blocks inline with your source code.
These blocks are ignored, but if you compile with a different switch, they are linked in and ran at the beginning of your program.