Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Driven Development

Similar presentations


Presentation on theme: "Test Driven Development"— Presentation transcript:

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


Download ppt "Test Driven Development"

Similar presentations


Ads by Google