Tagged Questions
28
votes
5answers
2k views
Test driven development - convince me! [closed]
I know some people are massive proponents of test driven development. I have used unit tests in the past, but only to test operations that can be tested easily or which I believe will quite possibly ...
17
votes
4answers
2k views
Why is test driven development missing from Joel's Test?
I was reading this blog by Joel Spolsky about 12 steps to better code. The absence of Test Driven Development really surprised me. So I want to throw the question to the Gurus. Is TDD not really worth ...
8
votes
3answers
528 views
BDD: Getting started
I'm starting with BDD and this is my story:
Feature: Months and days to days
In order to see months and days as days
As a date conversion fan
I need a webpage where users can enter
...
8
votes
2answers
257 views
Should I refactor my unit tests when I extract a class out of the System Under Test?
I wrote this class that does a few things (perhaps this is a violation of the Single Responsibility Principle). I realize now that some other part of the project needs a piece of that logic and the ...
5
votes
3answers
3k views
How to test the data access layer?
I have a DAO method that utilizes Spring for JDBC access. It calculates a seller's success rate of selling an item.
Here is the code:
public BigDecimal getSellingSuccessRate(long seller_id) {
...
4
votes
1answer
240 views
If TDD is design, how do you know your TDD is well designed? [duplicate]
Given a large group (50+) of programmers:
All given the same problem,
All using Test-Driven Development (TDD),
All pair programming,
All doing group-based code review,
I have personally seen the ...
2
votes
2answers
217 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
...
1
vote
2answers
146 views
Testing Framework Selection: xUnit family theory
Background:
I am familiar with xUnit family frameworks and have had experience with (shunit2, PhpUnit and simpletest). I am currently trying to find a testing framework for C++. I did a quick search ...