When we need to write unit tests for an existing codebase - particularly for older legacy code, or even for badly designed modern code - we sometimes come upon classes and methods that simply cannot be tested, or where the effort to write tests far exceeds the effort than it probably took to write the code in the first place. In this presentation we'll examine some of the "code smells" that make it difficult to write tests - and look at why they cause problems - before looking at the options available to make them testable.

Comments

Comments are closed.

One of the great overviews about testing "hard to test code".