Alex Banul

Why you must use TDD now!

Stop wasting time on QA cycles. Learn how TDD's 'Red-Green-Refactor' cycle builds quality in from the start, preventing costly production bugs.

Why you must use TDD now!
#1about 5 minutes

Introduction and overview of the TDD talk

The speaker introduces himself, his company Avanade, and outlines the structure of the talk on test-driven development.

#2about 1 minute

The challenges of traditional code-first development

Traditional development cycles where testing happens after implementation often lead to bugs slipping into production.

#3about 1 minute

What is test-driven development (TDD)

TDD is a software development process that converts requirements into test cases before writing the actual implementation code.

#4about 2 minutes

The core TDD workflow is red-green-refactor

The TDD process involves writing a failing test (red), writing just enough code to make it pass (green), and then cleaning up the code (refactor).

#5about 6 minutes

Live demo of writing a failing test first

A live coding demo begins by creating a .NET Web API project and writing a test for a health check endpoint that fails as expected.

#6about 2 minutes

Demo of making the first test pass

The demo shows how to write the minimal amount of code, including a controller and configuration, to make the initial health check test pass.

#7about 5 minutes

Demo of testing a calculator's add endpoint

The TDD process is applied to a calculator's add endpoint, starting with a simple test and then adding more test cases to expose flaws in a naive implementation.

#8about 4 minutes

Demo of fixing implementation using test feedback

By running multiple test cases, subtle bugs like incorrect parameter names are identified and fixed, ensuring the implementation meets all requirements.

#9about 4 minutes

Evaluating the benefits and challenges of TDD

TDD leads to testable solutions and cleaner architecture but requires discipline and team buy-in to overcome the initial temptation to code first.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
CH
Chris Heilmann
Dev Digest 109 -Egg-citing things…
As we are heading into the Easter break, here are some things to spend some time on. There's resources on improving the performance of your code and you hear from the winners of CODE100 Amsterdam what it was like to be on stage. Also, hang tight as t...
Dev Digest 109 -Egg-citing things…
LM
Luis Minvielle
10 Developer Websites in 2023
As a web developer, you're always investigating how to level up your skills and streamline your workflow. That's why we've gathered a collection of 10 innovative tools that are guaranteed to boost your productivity, enhance your coding abilities, ele...
10 Developer Websites in 2023
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
The Best Upcoming IT Webinars

From learning to earning

Jobs that call for the skills explored in this talk.