Gáspár Nagy on software

Witch typing: If it walks like a duck, quacks like a duck and weighs the same as a duck, it must be a witch.

Integration testing tips: When to clean the database

by Gáspár Nagy on February 23, 2015

We were always told to clean up after ourselves when we were children, this is also what I teach to my daughters. Probably due to this, when writing the first integration tests that inserts data to a database, devs cleanup (or reset) the database after the test has been executed (with an [AfterScenario] SpecFlow hook, for example). In reality, however, it is much more practical to do the cleanup before the scenario execution.

[read more…]