Stop wasting time on QA cycles. Learn how TDD's 'Red-Green-Refactor' cycle builds quality in from the start, preventing costly production bugs.
#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.
Matching moments
02:14 MIN
Exploring the key benefits of adopting TDD
Breaking the Bug Cycle: TDD for the Win
04:36 MIN
Introducing the core principles of test-driven development
Breaking the Bug Cycle: TDD for the Win
02:23 MIN
Using test-driven development to guide implementation
How Unit Testing Saved My Career
05:26 MIN
Understanding the Test-Driven Development workflow
Yes, You Need to Unit Test your JavaScript. Here's How.
02:39 MIN
Applying Test-Driven Development (TDD) strategically
How not to test
04:01 MIN
Adopting TDD as a design tool, not just a testing method
Treat yourself - A tale about dog training and test-driven development
01:48 MIN
Understanding the Test-Driven Development (TDD) workflow
Test Driven Development with JavaScript
03:01 MIN
Understanding the red-green-refactor cycle of TDD
Treat yourself - A tale about dog training and test-driven development
WeAreDevelopers LIVE days are changing - get ready to take partStarting 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...
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...
Luis Minvielle
10 Developer Websites in 2023As 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...
Luis Minvielle
The Best Upcoming IT WebinarsNow 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...
From learning to earning
Jobs that call for the skills explored in this talk.