|check; check minus; check plus;
||[Feb. 11th, 2008|08:56 pm]
I've been using check for unit testing in just about everything lately, and I've been spending a lot of time working on a little side project named GPlate (more on this at a later date).|
During the development of GPlate I've change the API quite a few times and broken it horribly in the process. Fortunately, check has been there to help me find the issues. Unfortunately, the output from check tends to be a very cluttered terminal.
To combat the clutter, I threw together a style sheet to transform the xml output of check to something a bit more eye pleasing.
The style sheet is released under the GPL and the icons are stock GTK+ icons which are also GPL. Anyways, a bz2 ball of the stylesheet and the images can be found here.
The style sheet accepts a few parameters. Namely project, arch, and version. Which are the project name, the architecture that it was tested on, and the version of the project.
I've been transforming with the following:
xsltproc --nonet --stringparam project GPlate --stringparam arch `uname -m` --stringparam version 0.0.1mtn -o results.html check.xsl gplate-tests.xml
You can of course dump this in a Makefile rule too, and let it fill everthing in :)
Feel free to hit me up with any questions or comments.