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.
1
vote
2answers
137 views
Returning a mock object from a mock object
I'm trying to return an object when mocking a parser class. This is the test code using PHPUnit 3.7
//set up the result object that I want to be returned from the call to parse method
...
-3
votes
0answers
96 views
What is the best code kata for C#? [closed]
Can you suggest what is the best coding kata for C#? I found the String Calculator from Roy Osherove String Calculator is good for learning TDD and String manilpuations, but is it the best? or there's ...
4
votes
4answers
100 views
How to implement isValid correctly?
I'm trying to provide a mechanism for validating my object like this:
class SomeObject {
private $_inputString;
private $_errors=array();
public function __construct($inputString) {
...
3
votes
5answers
224 views
“TDD is about design, not verification”; concretely, what does that mean?
I've been wondering about this. What do we exactly mean by design and verification.
Should I just apply TDD to make sure my code is SOLID and not check if it's external behaviour is correct?
Should ...
0
votes
0answers
54 views
GUI Test Runner for Boost.Test
Does a Boost.Test have a GUI version of a test runner? The closest thing what I found is a Boost.Adapter for Galio (https://github.com/ndl/Gallio.BoostAdapter), but as that project been dead for two ...
0
votes
3answers
168 views
Introduce unit testing when codebase is already available [closed]
Possible Duplicate:
Best practices for retrofitting legacy code with automated tests
I've been working on a project in Flex for three years now without unit testing. The simple reason for ...
2
votes
1answer
171 views
How to unit test image processing code?
I'm working in image processing (mainly OCR) and I wonder how I should integrate unit tests in my development.
I'm already using unit tests for more "common" type of code but when dealing with image ...
12
votes
4answers
366 views
TDD - Outside In vs Inside Out
What is the difference between building an application Outside In vs building it Inside Out using TDD?
These are the books I read about TDD and unit testing:
Test Driven Development: By Example
...
8
votes
4answers
411 views
Unit testing and Test Driven Development questions
I'm working on an ASP.NET MVC website which performs relatively complex calculations as one of its functions.
This functionality was developed some time ago (before I started working on the ...
2
votes
2answers
147 views
How to organize unit/integration test in BDD
So finally after reading a lot, I have understood that the difference between BDD and TDD is between T & B. But coming from basic TDD background, what I used to was,
first write unittest for ...
6
votes
1answer
246 views
Test Driven Development Code Order
I am developing my first project using test driven development. I am using Zend Framework and PHPUnit.
Currently my project is at 100% code coverage but I am not sure I understand in what order I am ...
0
votes
3answers
165 views
What's wrong performing unit test against concrete implementation if your frameworks are not going to change?
First a bit of background: We are re-architecting our product suite that was written 10 years ago and served its purpose. One thing that we cannot change is the database schema as we have 500+ client ...
1
vote
3answers
283 views
TDD, BDD or both?
I'm a little bit confused about BDD. I'm doing TDD currently.
My question is whether BDD is complementary to TDD or it's a whole new thing and my team should do both TDD and BDD? Or is it enough to ...
4
votes
1answer
322 views
Test-Driven Development with plain C: manage multiple modules
I am new to test-driven development, but I'm loving it. There is, however, a main problem that prevents me from using it effectively.
I work for embedded medical applications, plain C, with safety ...
3
votes
3answers
260 views
How do I make code bound to an ORM testable?
In Test Driven Development, how do I make code bound to an ORM testable?
I am using a Micro-ORM (PetaPoco) and I have several methods that interact with the database like:
AddCustomer
UpdateRecord
...