Tech Tutorials Database
GeekArticles Testing Database Testing

Database Code Unit Testing

Category: Database Testing
Comments (0)

These are my notes on how I've gone about unit testing database functionality. The examples are in Java, but I think the ideas are applicable to a variety of programming environments. I'm looking for better solutions.

The problem is this: you have a SQL database, some stored procedures, and a layer of code sitting between your application and the database. How can you put tests in place to make sure your code really is reading and writing the right data from the database?


Sponsored Links

Read Next: Database Design Guide Lines