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.

learn more… | top users | synonyms

1
vote
1answer
26 views

Challenges of begining test driven development with legacy codebase [duplicate]

I am beginning development on a legacy codebase and adding new functionality. The legacy codebase has no tests defined at all, and I dont have full control over it. I want to use TDD to help ensure ...
3
votes
4answers
97 views

What are the disadvantages of test driven development?

Today one of my peers gave a presentation on test driven development, he mentioned several advantages of TDD and it seems to be an effective practice. However, I was wondering what some of the ...
2
votes
1answer
33 views

TDD and Refactoring

Re-factoring code seems to be the more time consuming area of TDD, is there a way of knowing if you have spent too much time doing so? Or maybe a way of limiting the amount of re-factoring that must ...
0
votes
0answers
15 views

Can or should TDD be used for every programming project or is there a way to choose when to use it?

I am currently in software engineering and we are covering Test Driven Development. Can or should TDD be used for every programming project or is there a way to choose when to use it?
0
votes
1answer
15 views

How to dissect a large legacy codebase and start using TDD

If I was to inherit a large codebase, how would I start refactor the application using TDD? The application has layers of authentication(financial banking company), and frankly, not knowing where to ...
0
votes
1answer
35 views

Test driven development appropriateness

I am aware that there are many advantages of test driven software development. However, I'm wondering if there are situations in which test driven development is not appropriate or just downright not ...
0
votes
1answer
10 views

What methods or resources could I use to refactor current programs to use test-driven development?

So what are some current methodologies or even automated test software that I could use to refactor current code to be more test-driven?
0
votes
0answers
8 views

Refactoring code in TDD cycle and the appropriate time to do so?

When it comes to the TDD cycle, how far through the testing should refactoring the code take place (incremental after each test or at the end)? And how would this affect the TDD cycle and the time ...
1
vote
0answers
16 views

TDD and client-server interactions

I'm new to software development and I am writing some functions that send data to and ask for data from a server. If I wanted to use test driven development when writing these functions, what would be ...
1
vote
2answers
27 views

Is TDD used with all types of testing?

The way TDD has been described to me makes it sound like TDD is only really useful with unit testing. Does TDD mean all types of testing, such as Acceptance testing, and functional tests?
2
votes
2answers
30 views

TDD in a two-week sprint? Practical?

On one hand, it may take a while (or a long time) to create and run tests with TDD. The worst case scenario is when the test cases fail and the entire program fails. Refactoring may take longer than ...
0
votes
1answer
12 views

How would I write a test for a database system such as Redis?

So i'm looking into databases and I want to use Redis, but I would like to know how I would go about writing tests for a database such as this before starting with it.
0
votes
1answer
26 views

Using TDD when developing a database schema?

I am fairly new to TDD and database development. If I wanted to use test driven development when I am trying to create a database schema how would I do that? What are the common tools and processes ...
1
vote
2answers
54 views

What are some common pitfalls of Test Driven Development?

I'm new to test driven development. What are some recommendations when writing test cases as well as to avoiding common mistakes for TDD?
2
votes
1answer
73 views

Agile test driven development

What is a good way to introduce to managers, who are have always used a waterfall software development mental model, sometimes known as the V model, that it is worth moving to a more agile-Test Driven ...
3
votes
4answers
254 views

Strategy to handle legacy bugs

There are a number of new developers and testers in our team. When the testers are testing the new features the developers built, they are finding a number of issues, which is not strictly in the ...
0
votes
4answers
164 views

Reviewing unit tests before implementation

I am going to adopt TDD in our team and one of the ideas I have is to review tests first. So one would write interfaces, mocks, and tests first, submit them for a code review and once interfaces and ...
2
votes
3answers
232 views

Is specification replaced by tests in TDD?

I believe not, but as I read and read about testing in agile approach, separation between developers and QA, and between tests and specification becomes more and more fuzzy. I read Test-Driven ...
1
vote
4answers
198 views

Should I write a small test for every ticket / defect?

We have unit and integrations tests in our project and want to work test driven. One questions that raise up is this: When a ticket is created because somebody found a bug, should we create a small ...
6
votes
3answers
613 views

How to avoid redundant tests

We are building an application using a completely test-driven approach. As developers, we are very familiar with unit tests but haven't been exposed to integrated / functional / acceptance tests. ...
6
votes
4answers
4k views

What are recommended scenarios to use Selenium Tests for?

My company is introducing BDD into our projects. Our customers have differents processes-cases wich also may fork at specific points. It is a mostly long and tedious work to test each case and each ...
12
votes
5answers
477 views

In TDD, do tests need to be automated?

My manager's manager (... and his manager, and everyone else who wears a suit) at my firm is talking about how we really need to transition to TDD because it's better than what we're doing now. ...
11
votes
4answers
208 views

If I didn't use TDD but want to transition to agile, should I go back and create those unit tests?

In an transitioning agile environment, if there was no Test Driven Development (no unit tests created), should you create unit tests to catch up on technical debt? And to what extent? Should they ...
18
votes
4answers
1k views

Developing Unit Tests While Refactoring Legacy Code?

I have a big code library that I need to refactor in order for it to fit more nicely together (one big problem is there aren't clear enough boundaries between each component). Since there will be ...
7
votes
3answers
385 views

Suggestions for “Selling” TDD, and FDD to sceptical non engineering managers

Let's say you are a developer (specifically, the team lead) and you want to improve the quality of your company's products. Since you cannot change the whole company, you focus on what you and your ...