Writing tests that suck less!

15-min Consensus Talk

Why is it so hard to write proper integration tests?

Timetable

2:25 p.m. – 2:40 p.m. Wednesday 14th

Room

Room F1 - Track 1: Talks

Audience

Testers, Automation Engineers, Product Owners

Key-Learning

  • How to separate the "what", the "how" and the "why" of a test?
  • What is a good integration test?
  • Strategies to transform tests to a living documentation

The "What", the “How” and the "Why"

Writing unit tests is easy, since testing functions is trivial. But the more high-level our tests become, the more they have to deal with the state and side-effects of our application. It becomes harder and harder to write proper tests. And worst of all: they are harder and harder to understand and to maintain, greatly diminishing the value of those tests as a documentation of your software.

On the other hand Acceptance Tests can be seen as the most important tests of our systems. They should be easy to read and to reason about. These tests have to clearly communicate the intent of the code under test.

In this talk I want to show how you can use simple strategies to tranform your acceptance tests to something, that clearly separate why is something tested, what is tested and how it is tested. These tests will be easy to grasp and to reason about, providing great value as an executable documentation of your systems.

Related Sessions

2:25 p.m. – 5:25 p.m.
Creative Space Room - Track 9: Bonus Sessions

Bonus Session

11:10 a.m. – 11:40 a.m.
Room F3 - Track 3: Talks

30-minute Talk

3:10 p.m. – 3:40 p.m.
Room F1 - Track 1: Talks

30-min New Voice Talk

11:10 a.m. – 11:40 a.m.
Room F3 - Track 3: Talks

30-minute Talk