TDD, DB, and Unit Tests - Book or Article?

Can anyone recommend a good book or article on writing unit tests to cover object persistance and retrieval via a relational database?  Or maybe on writing tests covering general data access.
Published Monday, September 11, 2006 10:35 AM by Travis
Filed under: , ,

Comments

# re: TDD, DB, and Unit Tests - Book or Article?

Monday, September 11, 2006 2:37 PM by RoyOsherove

Hi Travis.

I wronte an article on a simple way to achieve this in .NET on MSDN Magazine:

http://msdn.microsoft.com/msdnmag/issues/05/06/UnitTesting/

you can also check out these:

http://weblogs.asp.net/rosherove/articles/dbunittesting.aspx

Also - look up mbUnit" - it has a "rollback" attribute which I helped create that allows seamless rollback of database.

You might have guessed - I'm pro testing *with* the datbase (meaning -Integration Testing the data layer.

I'm also in he midst of writing the book "Art Of Unit Testing" which will deal with this issue as well.

Roy.

# re: TDD, DB, and Unit Tests - Book or Article?

Tuesday, September 12, 2006 11:19 AM by Travis

Thank you Roy, I'll definatly check out those resources.  And I'll wait patiently for your book... :-)

Leave a Comment

(required) 
(required) 
(optional)
(required)