Unit testing GIMP

Everyone seems to agree that testing software is important. Hardly anyone does so in practice. Especially open source software can benefit from good testing and there are a lot of great tools available. Last week I wrote a GIMP# new plug-in that is based on NUnit. This plug-in does unit testing on all GIMP# classes and thus indirectly also unit tests GIMP itself.

For GIMP# this is a very important step to improve the quality even further, since I have written a lot of code (mostly C# wrappers around the GIMP API) that isn’t called by any plug-in yet. The unit tests will ensure that the wrapper will work as advertised.
The new plug-in will be available in GIMP# 0.8 and can be enabled with the –with-unittest option in the configure script.