svn test integration

BooK on 2005-01-25T11:20:48

I'd like to set up a svn repository so that the test suite is run after each commit. I'm sure there's a way to do it, I just didn't find out how while skimming over the SVN documentation.

Or maybe I could just a write a script that steps over the release numbers, running 'Build test' until it reaches HEAD. No need for integration, just a cronjob.

We would stick the test result information in some manner of database (along with coverage info). And then I'll start screaming "BAD PROGRAMMER, NO COOKIE!" when someone commits bad code (or tests). :-)


SVN hook scripts

stvn on 2005-01-25T13:46:53

Inside the directory of your SVN repository is a directory called hooks/, specifically named executable files in here will get run by SVN at various points of your commit cycle. You could easily use this to run your tests with.

The most common usage of this is to email commital information to a mailing list. At my work, we actually use it to refresh the working copy in our web directory each time we commit (sort of like version controlled FTP). You can read about this stuff in the online version of the SVN book here.