Refactoring

Talks

Testing Legacy Code & Avoid Mocking

In reality, our jobs aren’t dealing with new code, but old crufty and evil code. How do we test such code, how do we get through it? How can we surgically take some of this bad code apart and make it testable.

Getting Started with Test Driven Development in Java

Test-Driven Development is a test-first practice that drives the code through tests. It is a simple practice but not an easy practice.

  1. Quickly add a test.

  2. Run all tests and see the new one fail.

  3. Make a little change.

  4. Run all tests and see them all succeed.

  5. Refactor to remove duplication.

The details are what gets you. This presentation introduces you to Test Driven Development, how to get started, what modern tools are available, and the challenges you will face.