Deutsch
English

Testing framework for dummy records

As I mentioned in a recent blog post, we're using unit tests for further development of the Seminar Manager.

While working on some new methods, we found out that we need a small class that is able to generate and clean up dummy records in the databse. It's filed as bug report #1237 on our bugtracker and I took over the work on that thing.

After defining the layout, included functionality and so on together with Oliver, I started coding last sunday afternoon. It was quite fun to develop on "clear ground" and I think I made a good progress so far.

Due to missing time to really work on it, I do it like this: "One method a day keeps the doctor away.". Means: I write one method, and then the tests for that method on the same day. Everything else (cleanup of older code or writing new methods) has to wait.

The results will be in the next oelib release. That's the library on which Oliver, Niels and I added some cool features that can be used in every other extension. If you plan to use unit tests in one of your own extensions, my code could save you some work :-)

I hope to finish this within the next 2 weeks including the now missing code, all needed tests for the new code, code reviews and documentation.

Every input, critism, idea or wish is welcome to land here as a comment.

Hinterlasse eine Nachricht

CAPTCHA Bild zum Spamschutz