1

Trying to wrap my head around test driven development. Unit testing is already in place and works fine from business layer up to and including web UI. Now I’m trying to solve question how to test data layer and underlined database. In the past, data layer had more code than in business layer and UI, and keeping the layer untested really hurts quality.

Are there any frameworks to set up database and data layer testing? To be specific, I'm looking solutions for .NET Framework and SQL Server, but I also interested for other platforms and databases.

1 Answer 1

2

If you are using Visual Studio Team Edition, then you can use the Database Developer part to create unit tests against your datamodel.

Other than that, just use regular unit tests to call your DAL or stored procedures directly.

Of course, Database testing usually has an additional set up task for getting the data in a state for testing. And another one for cleaning up after all of the processing has occurred.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.