Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » TDD » Test   (RSS)
I read this excellent post on test readability a few days ago. I like the way he shows how he refactors a test for readability but personally I would have written the example test a little bit differently. First of all I would have added another extension Read More...
If you're a BDD/TDD practitioner you're probably used to create a failing test whenever you have a new bug reported and you want to fix it. But sometimes a situation arises where you have to do the opposite; creating a passing test before you fix a bug. Read More...
A few days ago I wrote about Continuous Unit Testing (CUT) and why the need for CUT was a sign of other problems . The last days I have been thinking about CUT a little bit more and I still find CUT questionable but there is another thing - CAT (Continuous Read More...
Earlier I promised to elaborate on why slow unit tests are a sign of problems (or a smell if you like). So here it goes. The first thing I would like to look at is when the complete test suite takes too long to run to be part of a tight TDD-loop. If it Read More...
During the Christmas holidays I read about something I would like to call CUT (Continuous Unit Testing). CUT is a technique where you run your unit tests in the background all the time rather than after each time you compile (I'm assuming TDD/BDD is being Read More...
I recently had a chance to really sink my teeth into xUnit.net . Since I've been stuck with CPPUnit for quite some time and working with xUnit.net was a relief. Compared to NUnit I find xUnit much easier and convenient to work with (and compared with Read More...
A common practice taught in many TDD classes is the principle of too easy to test . The principle basically says that you should not test really simple things since then you will spend time writing tests that not really add value. This is a fair recommendation Read More...
Measuring code coverage is often perceived as a good measure of test quality. It is not. Good tests finds problems when changes are made to the code. But if you just want to have large code coverage you can easily make a number of tests calling all your Read More...
When looking at BDD and TDD examples it is very common to see the use of mock objects in the code. This however strikes me as a little bit strange since I think you should use stubs and not mocks when working with BDD/TDD. A mock is basically a stub with Read More...
Version 1.0 of xUnit.net has been released . So do we need another unit test framework? And I think the answer is yes . There are a number of things that I've found a little bit weird in NUnit and with xUnit.net they have been removed. I definitely think Read More...
 
Page view tracker