Download presentation
Presentation is loading. Please wait.
1
Test Driven Development
Tests as goal posts
2
TDD Test Driven Development : using tests to guide coding
To add a new feature: Write a test that will use the new feature Write code to pass the test
3
Building a Class TDD way to build a class: Come up with basic spec
Write .h Make .cpp with simplest constructor and accessor functions Repeat until no more functions left Pick a function (constructors first!) Write a test Run Test Write function While test fails, repeat c-e
4
TDD Granularity Can use TDD at multiple levels
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.