location_city Singapore schedule Oct 6th 11:30 AM - 12:15 PM +08 place Legends I

Automated unit testing is commonly considered an essential part of writing reliable, bug-free software. But writing automated tests introduces a number of challenges of its own. Naively-written tests are complex, brittle and hard to understand. This increases their cost-of-ownership and reduces the value they provide.

In this talk, Gerard Meszaros examines some of the key pitfalls and shows us how to improve the quality of our automated tests. He shows us how we can make our tests shorter, clearer and cheaper to prepare by refactoring a long, complex test into a short easy-to-understand test. Then he goes on to show how we can apply the same concepts to writing new tests quickly and cheaply.


Outline/Structure of the Demonstration

  1. Why do we need automated unit tests?
  2. What makes unit tests effective?
  3. Intro to Test Smells and Patterns
  4. Case Study: Refactoring a Smelly Test
  5. Case Study: Writing New Tests Avoiding Smells
  6. Recap & Summary

Learning Outcome

  1. Become aware of smells in automated tests
  2. Learn how to use test smells to drive refactoring of tests
  3. Learn how to write shorter, clearer tests by avoiding smell test code

Target Audience

Developers and Test Automaters


schedule Submitted 5 years ago