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.
4
votes
2
answers
1k
views
Does a project using proper TDD have a lot of code without tests?
TDD resources show you how the cycle goes:
Write Test
Check Test
Write Production Code
Check Test
Clean up Production Code
Check test
They also - to me - seem to imply that all code is covered by … TDD resources on the net seem to imply 100% code/test coverage, yet
looking at TDD with True Unit Tests will leave some code untested
Edit: wikipedia says:
Integration testing takes as its input …
11
votes
9
answers
9k
views
Is anyone doing "real" TDD with Visual-C++, and if yes, how do they do it? [closed]
, separate vcproj from your production classes will add so much overhead that TDD "isn't possible". … As far as I am aware, you do not add extra "projects" to a Java or C# thing to enable Unit Tests and TDD, and for a good reason. …
3
votes
3
answers
467
views
How to keep settings for C++ Unit Test modules in sync with the production code modules?
Note: I'm coming from a Windows / Visual-C++ background.
Note: I have already read Michael Feathers' Working Effectively with Legacy Code.
Note: Broad question, asking for narrow answers, i.e. while …
23
votes
7
answers
2k
views
Does adding unit tests make sense for well-known legacy code?
I'm talking about unit tests in the TDD sense. (Not automated "integration", or what you like to call it tests.)
Legacy code as in: (C++) code without tests. …
20
votes
5
answers
1k
views
Does unit testing lead to premature generalization (specifically in the context of C++)?
Preliminary notes
I'll not go into the distinction of the different kinds of test there are, there are already a few questions on these sites regarding that.
I'll take what's there and that says: un …
54
votes
2
answers
11k
views
How should C++ Unit Test code be organized for maximum Unit Test efficiency?
This question is not about Unit Testing Frameworks.
This question is not about writing Unit Tests.
This question is about where to put the UT code written and how/when/where to compile and run it.
…