Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » 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 noticed a thing about xUnit.net that makes me love that framework even more than before . As you probably already know, an important aspect of (unit) tests is that they can be executed in any order. xUnit.net helps you remember this since it Read More...
So now you know how to get coverage reports for native C++ using Visual Studio 2008 Team System (if not - read this ). There are a few things you need to know before you get excited. First of all the only metrics you get are line and block coverage. A Read More...
The code coverage tool in Visual Studio 2008 Team System is quite easy to use from within the IDE unless you want code coverage for your native C++ code. In order to generate a code coverage report for native C++ you have to use the command line tools. Read More...
Since I'm not a fan of mocks I guess my prayers have been heard. Microsoft Research will soon release a stub framework . That's right. Stubs and not mocks! It is part of Pex that I have mentioned before . And you don't need to use Pex if you don't want. 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...
As many before me I was recently looking at different mocking frameworks in order to find one that suited my needs, and was written in C++. And there are not many alternatives out there if you're using C++. I've found one open source and two internal Read More...
More Posts Next page »
 
Page view tracker