Scott Miller will be presenting a tutorial on interaction testing at Dr Dobb's Architecture & Design World


March 9, 2007

Atomic Object developers have been doing test-driven development and automated testing since we founded the company. In the last year we’ve pushed our practices further by adopting and refining interaction-based testing. Several open source projects have resulted, such as mocking libraries for OpenLaszlo and C.

Scott Miller will be teaching a tutorial on interaction-based testing at this summer’s Architecture & Design World. Sponsored by Dr Dobb’s, this event offers world-class presenters and cutting-edge subjects.

Unit testing your code base is a key agile development practice. The most common method of unit testing in use today is state-based unit testing: Based on a set of inputs, what is the output value? While this sort of testing can and does go a long way towards developing a more stable application, the tests themselves can be more complicated than unit tests should, or need, to be. In this tutorial we will explore the benefits of interaction-based unit testing using dynamically generated mock objects. Interaction-based unit testing encourages (almost demands) the use of several design patterns that state-based testing does not: Favoring composition over inheritance, Programming to an interface, and The Single Responsibility Principle, among others.

Edit