views:

58

answers:

1

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?

A: 

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

stacker