|
September 2003
[
vmassol
]
08:32, Saturday, 27 September 2003
Let's imagine you wish to perform unit test for code that calls the database. Let's also imagine that you want to test in integration, i.e. verify that the SQL query does actually goes to the database and returns database data. The traditional approach is to:
There are several disadvantages to point 2:
One solution that our project team discussed yesterday is about using transaction rollbacks. It would work as follows:
I was suprised to see no mention of this on the articles mentioning database unit testing (http://www.dallaway.com/acad/dbunit.html, http://www.dbunit.org/bestpractices.html). The reason may be that there are some glitches with this technique that make it impossible to use in practice... I'd like to know what you think? Have you done this before? Notes:
[
vmassol
]
19:05, Sunday, 21 September 2003
I have just released version 2.0 of the StatCvs plugin for Maven. The Maven StatCvs plugin is a plugin for StatCvs-XML that generates CVS statistic reports. Changes in this version:
You can download the StatCvs Maven 2.0 plugin here. |