Relative Content

Tag Archive for tdd

Post-hoc testing in TDD recommended?

I have a personal project that doesn’t have robust testing. I had a bit of TDD going on at the beginning, but it quickly became counterproductive as the project details changed dramatically over time. So a lot of previously written tests have become useless.

Sporadic unittests or TDD?

I’ve read some basics about unit tests and TDD, but I find it hard to convince myself why TDD can have an advantage over only selected unittests.

Methods for testing a very large application

I have a PHP app which is very large. There are usually 2-3 developers working on it full time and we are getting to the point where we are making changes and creating bugs (cough features!). The software isn’t complex per say, just there is a lot going on (35~ controllers, about the same models, etc).

Does following TDD inevitably lead to DI?

I learned to do Test Driven Development (TDD), Dependency Injection (DI) and Inversion of Control (IoC) all at the same time. When I write code using TDD I always end up using DI in my class’s constructors. I am wondering if this is because of how I learned to do TDD, or if this is a natural side-effect of TDD.

TDD with SQL and data manipulation functions

While I’m a professional programmer, I’ve never been formally trained in software engineering. As I’m frequently visiting here and SO, I’ve noticed a trend for writing unit tests whenever possible and, as my software gets more complex and sophisticated, I see automated testing as a good idea in aiding debugging.