O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What should we test?

This is a rather philosophical question and it largely depends on the specific situation. Some development groups try to write tests for every single line of code they write. In this case, one would have 100 percent code coverage. However, this is not always possible or cost-effective.

In the latter case, we have to come up with a list of areas that are worth testing. Examples on the list can be:

  • Complex mathematical or statistical algorithms
  • Involved business logic or business processes
  • Code that is used as the foundation or framework in an application
  • The mapping of the domain model to the underlying database schema
  • Complex database queries

This list is by no means complete and shall only give an indication of things that are worth ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required