ATK gets test database support
November 16th, 2006 by Ivo
One of the things that in a complex system can complicate testing, is the fact that you may rely on the database a lot. You can always mock the database, but this slows down writing the tests.
Ruby on Rails has a feature called 'fixtures', which makes setting up test databases pretty easy.
Inspired by this, a few of my fellow ATK developers have written a system to make using test databases very easy. Not only with fixtures, but also with automatic cloning of an actual database to be able to use actual data in tests (where this is relevant).
Peter has written a blogpost about this on our company website. If you're using ATK and want to increase your unit/webtesting productivity, check out his entry.
Test First
March 16th, 2005 by Ivo
At ibuildings, we're currently in the progress of evaluating Extreme Programming (XP).
One of the key things in the XP philosophy is Test First. Back in the days when ibuildings was a group of about 6 merry hackers, we couldn't care less about formal testing. Now, having grown into a company with 25 people in two offices, and many customers and users of our software, it becomes essential.
ATK plays an important role in most of the software that ibuildings develops, so applying it to ATK is my starting point. It's too late now to do 'test first' on ATK. But it's not too late to just test, and to apply 'test first' to any future developments.
One of our interns is performing some research on several testing frameworks, such as PHPUnit. So far, SimpleTest seems the most promising.
I will soon have a look into how we can integrate this test framework in ATK, so we can perform automated testing before new releases, in the hope that we will have less new bugs. Such as the search bug that was introduced in ATK 5.1.
If you have experience with XP or formal testing, feel free to share your thoughts with us.