Secrets of Effective Unit Testing

When we start looking into unit testing, we get the simple examples that work in an ideal world. When we start working on actual code, we bump into reality. While unit testing is not easy, it can be easier.

In this course, we’ll try our hands in different techniques of unit testing. We’ll discuss naming methods, practice refactoring and techniques of Test Driven Development that work in the real world. Although we think about unit testing as a “tool” thing, it is really a set of skills that we can continue to develop over years. In this workshop we will learn how we can identify and improve those skills.

This is an advanced hands-on workshop. It is intended for developers who already have basic unit testing experience.

Workshop goals

After this workshop you will be able to:

  • Understand and design your code according to the “Four Rules of Simple Design”
  • Prepare your existing legacy code for unit testing
  • Refactor for better design with the aid of tests
  • Identify and use patterns used in TDD
  • Use the “Transformation Priority Premise” in TDD

Workshop outline

  • Unit testing with real code
  • 4 Rules of Simple Design
  • Refactoring with tests – Code smells deodorant
  • Refactoring as preparation for Tests
  • TDD Patterns
  • Transformation Priority Premise

Target audience: This workshop is for developers with some unit testing and/or TDD experience who want to enhance their skills. Attendees need to bring a laptop with their favorite IDE in their favorite language (it doesn’t matter which one), and a testing framework.