Linked Questions

127 votes
16 answers
70k views

It seems to be generally assumed (on Stack Overflow at least) that there should always be unit tests, and they should be kept up to date. But I suspect the programmers making these assertions ...
8 votes
5 answers
6k views

Is it recommended that TDD be always practiced in a project, or are there cases when it should be avoided? Should we all adopt TDD? Is it standard practice in major software companies?
Joel's user avatar
  • 91
18 votes
2 answers
5k views

I've been watching a few of the Is TDD Dead? talks on youtube, and one of the things that surprised me is Kent Beck seems to acknowledge that there are just some kinds of programs that aren't worth ...
Daniel Kaplan's user avatar
3 votes
4 answers
1k views

I'm very familiar with xUnit frameworks and I try to implement unit tests on every project I start. Somewhere along the way, I realize that I'm writing the same tests over and over again, and then I ...
Naftuli Kay's user avatar
  • 1,621
186 votes
16 answers
22k views

We have tried to introduce developer automated testing several times at my company. Our QA team uses Selenium to automate UI tests, but I always wanted to introduce unit tests and integration tests. ...
Mag20's user avatar
  • 3,311
80 votes
10 answers
38k views

So today I had a talk with my teammate about unit testing. The whole thing started when he asked me "hey, where are the tests for that class, I see only one?". The whole class was a manager (or a ...
Zenzen's user avatar
  • 1,006
75 votes
7 answers
21k views

Suppose one had a relatively large program (say 900k SLOC in C#), all commented/documented thoroughly, well organized and working well. The entire code base was written by a single senior developer ...
Paul's user avatar
  • 1,025
70 votes
7 answers
19k views

Short introduction to this question. I have used now TDD and lately BDD for over one year now. I use techniques like mocking to make writing my tests more efficiently. Lately I have started a ...
twilker's user avatar
  • 918
30 votes
11 answers
4k views

I'm going to start my first real project in Ruby on Rails, and I'm forcing myself to write TDD tests. I don't see real advantages in writing tests, but since it seems very important, I'll try. Is it ...
Matteo Pagliazzi's user avatar
4 votes
7 answers
5k views

Possible Duplicate: Is unit testing or test-driven development worthwhile? I've been working with C# for the last 2 years, and I've never done any unit testing. I just need to know what the ...
Mou's user avatar
  • 209
21 votes
3 answers
9k views

TL;DR Writing good, useful tests is hard, and has a high cost in C++. Can you experienced developers share your rationale on what and when to test? Long story I used to do test-driven development, ...
futlib's user avatar
  • 2,205
7 votes
3 answers
16k views

I use JavaScript with JQuery for a Rails application. I have some dynamic behaviour in this one. As a Ruby developper, I like TDD/BDD, specialy with RSpec. For the moment, I test my JavaScript manualy....
Dougui's user avatar
  • 189
4 votes
2 answers
3k views

I've been tasked with studying a Python code, which runs on an orchestrator, which schedule the launch of the code in correspondence of some events. The code imports some modules, and it's basically ...
DeltaIV's user avatar
  • 231
1 vote
3 answers
362 views

I really value unit-testing in developing webapps. I haven't had any experience in developing mobile apps. Is there anything that cannot be unit-tested in mobile apps? And what is the workaround for ...
Joshua Partogi's user avatar
0 votes
1 answer
246 views

This is language agnostic. I want to develop a simple custom assertion class using test driven development. The class will have an assert method called assertCarIsNotDamaged which will check if a ...
Erran Morad's user avatar