Classification of Unit Testing
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 test开发者_运维百科ing
any more?
I would say you should write unit tests for all (model,controller,db) but UI-testing which is considered as integration test
- Web Apps are better tested with this tools.
- For Swing and SWT are also specialized tools available.
For DB-testing you might want to check DBUnit
Open-source Testing Tools
精彩评论