Chapter 6. Testing

In this chapter, we will cover the following recipes:

  • Using NHibernate Profiler
  • Profiling NHibernate with Glimpse
  • Fast testing with the SQLite in-memory database
  • Preloading data with SQLite
  • Using Fluent NHibernate persistence testing
  • Using the Ghostbusters test

Introduction

Testing is a critical step in the development of any application. The recipes in this chapter are designed to ease the testing process and expose common issues.

Get NHibernate 4.x Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.