Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
TDD stands for Test-Driven Development, or Test-Driven Design. It is the practice of writing a unit test before writing code to satisfy it, in what is known as the Red-Green-Refactor cycle.
9
votes
Accepted
TDD, new tests while old ones not implemented yet
The good thing is that you realize your code under test needs assistance. Rather than implementing it right away, create an interface and use mocks to make sure your tests are tageting the correct cod …
16
votes
Why does TDD work?
TDD as Specification
The unit tests that you write for TDD are a direct translation of the specification as you understand them. … In the same regard, TDD saves you from turning boneheaded mistakes into project killing disasters. …
1
vote
TDD adding simple properties
If you need a property, you have a feature that requires that property to be there. In the course of writing unit tests for that feature, you will reference that property and thus its existence will b …
217
votes
Accepted
What is the difference between writing test cases for BDD and TDD?
The difference between BDD and TDD is that BDD begins with a B and TDD begins with a T. … Basically it is a feature driven approach to TDD. …
5
votes
Why not write all tests at once when doing TDD?
TDD/BDD is as much a design/discovery process as it is a QA process. …