A TDD Dilemma

time to read 1 min | 143 words

I am currently modifying some core parts of the system, changing it from using a SQLite DB to using Berkeley DB. The problem is that it is causing... issues.

I have things fairly well isolated, but I need to write code that make this test pass:image

As you notice, this is a test for the repository, and it is verifying that the changes has been written to DB correctly.

I removed the references to SQLite and am ready to write the BDB implementation. But I can't. I have no idea how to design it, and I can't write tests to allow incremental design because all the tests are broken.

I am creating a Temp.Tests project now, and TDDing the implementation, after which I will fix the tests that currently cannot compile.