Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  How deep should unit test go?

There is a question on Stackoverflow which says "How deep are your unit tests?". It is asked by a guy named John Nolan. The question is not too new, but what catches me is the Best Answer given by Kent Beck, who is the creator of Extreme programming(XP) and Test Driven Development(TDD).Let's look at the question first.The thing I've found about TDD is that its takes time to get your tests set up and being naturally lazy I always want to write as little code as possible. The first thing I seem do is test my constructor has set all the properties but is this overkill?My question is to what level...

4,139 0       TDD UNIT TEST XP


  That’s Not TDD

A few months ago I was visiting a client who was having a lot of problems using TDD.“It takes over half an hour to run our unit tests,” he said.“You are not doing TDD,” I said. “In order for tests to be valuable all of them must run fast—within a few seconds, or developers will stop running tests frequently.”“But how to I make them run fast?” he asked, “Just connecting to the database takes 30 seconds”So I showed him a technique called Dependency Injections that allowed him to insert a mock object instead of the database. â€...

2,808 0       METHOD DRIVER TDD QA MODEL UNCONTROL