KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am building a web application that uses the database for Users, Security/roles, and to store content. It seems a little daunting to me to begin on the road of unit testing because I have to make sure my database has been initialized properly for my tests to run. What are common practices to help in this regard? i.e. while developing/testing, I might delete a user, but for my test to pass that user has to be in the database, along with his profile, security settings etc. I know I can create a setup script, something to recreat the databas etc. I don't want to end up spending my entire time maintaining my tests and ensuring my database is in sych Or is that the cost of Unit Testing/TDD?
Tags (comma-separated)
Save Edits
Cancel