Assume I have built a MVC web apps written using Java.
Now I want to write unit tests for the web apps, what kind of unit testings should be done for a normal mvc web apps?
- model testing
- controller testing
- ui testing
- db testing
any more?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would say you should write unit tests for all (model,controller,db) but UI-testing which is considered as integration test
For DB-testing you might want to check DBUnit
Open-source Testing Tools