Skip to main content

Experience test-driven development (TDD)

120-minute Workshop

The red-green-refactor cycle of test-driven development (TDD) is a powerful way to write code.

Timetable

2:45 p.m. – 4:45 p.m. Thursday 27th

Room

Room D6 - Track 9: Workshops

Coding for Testers

Audience

anyone with basic programming skills, testers, developers, quality engineers

Required

laptop, ideally with the workshop setup already one

Key-Learnings

  • Red-green-refactor lets you take small steps with feedback at every step.
  • Red-green-refactor lets you discover the right implementation as you go.
  • The ideas of red-green-refactor still apply when you're writing test automation.

discover the power of red-green-refactor with the counterstring code kata

People who practice test-driven development (TDD) often describe it as a powerful approach. And while they make a convincing case, nothing beats experiencing it for yourself. So that's exactly what we'll do in this workshop.

We'll start with a brief explanation of TDD's red-green-refactor cycle. Red: write a test for the next bit of functionality you want to add. Green: write the code needed to make the test pass. Refactor: improve the code and the tests. Next, it's time to put that cycle into practice implementing a fairly simple algorithm. There's very little setup needed, so you can do this in any programming language you like.

In the last part of the workshop you'll share you experiences and your code. We'll reflect on those as a group, drawing lessons from it. And we'll discuss how the red-green-refactor cycle applies, even when you're writing something that's not unit testable, like test automation.

Related Sessions

Virtual Pass session
Thu, Nov 27 • 10:45 a.m. – 11:30 a.m.
Room F2 - Track 2: Talks

25-minute Talk

Coding for Testers Testing Tools

Virtual Pass session
Tue, Nov 25 • 4:00 p.m. – 4:45 p.m.
Room F1 - Track 1: Talks

25-minute Talk

Coding for Testers Test Automation Testing Tools

Virtual Pass session
Thu, Nov 27 • 4:00 p.m. – 4:45 p.m.
Room F1 - Track 1: Talks

25-minute Talk

Coding for Testers Collaboration & Communication Test Automation

Mon, Nov 24 • 8:30 a.m. – 4:30 p.m.
F-,E- & D-Rooms

Full-Day Tutorial (6 hours)

Artificial Intelligence (AI) Coding for Testers