automated testing with CL & darcs
I spent a good chunk of today trying to get darcs to run my unit tests automatically. I haven\’t actually gotten it right yet, but at least I have it running the tests before each commit (even if the commit happens regardless).
I set up the auto-testing with
darcs setpref test \"chmod +x test/run-tests; test/run-tests\".
test/run-tests is the test script, but darcs doesn\’t allow you to add executable files to the repository, so you have to run
chmod on the script before it can actually be executed.
Here\’s the test script itself:
What it should be doing is running the tests, and returning non-zero on failure. It runs the tests, but the failure bit isn\’t exactly happening yet.
I figured I\’d throw this out there and see if anyone else has a decent way of getting automated testing happening. The more I try to bridge between Lisp and Unix, the more I just want to live in a Lisp REPL.