Browse by Tags

Tagged Content List
  • Blog Post: How to Name Test Methods

    I really like BDD (Behavior Driven Development) and it’s structure for helping to focus on behavior instead of implementation when you write unit tests. Some time ago I ran across a blog post by my former colleague in the patterns & practices group Daniel Cazzulino: Writing meaningful, self-documenting...
  • Blog Post: Interpreting C++ Code Coverage Results

    You’ve finally gotten code coverage results for your C++ code. But now your code coverage numbers are lower than you expected. Why is that? And how do you get around it? There are several issues that make C++ code coverage data “noisy” and/or inaccurate. First, if you use the standard C++ libraries,...
  • Blog Post: Capturing C++ Code Coverage with Visual C++

    I wrote an article about six months ago on code coverage in C++, which is part of my article Agile C++ Development and Testing with Visual Studio and TFS . In that article, I showed how to use a command line to create code coverage because I was under the impression that Visual Studio 2010 didn’t support...
  • Blog Post: Building for Testability in C++

    Ten months ago, when I joined my current team, we had a C++ application that was written as many applications are, with a number of classes, inheritance, and classes creating other classes they needed in order to do their work. The trouble was that writing tests for this code was very hard because it...
  • Blog Post: Building Mixed C# and C++ Projects in TFS 2010

    We recently added C# unit test projects to our existing C++ product and unit test projects, but they weren’t being built by our gated check-ins. I did some research and found lots of blog posts. The closes one, and the blog post that got me pointed in the right directory, was Aaron Hallberg’s post on...
  • Blog Post: C++/CLI to C++ Tips and Tricks

    In my previous post, Writing Unit Tests in Visual Studio for Native C++ , I described the approach I’m using to write unit tests for native C++ code by using C++/CLI, which is C++ code that runs inside the .NET runtime. Because of this “mixed” programming model, there are some techniques you may need...
  • Blog Post: I Have a Dream…No Regressions

    OK, so “I have a dream” isn’t original, and perhaps neither is my dream. However, the path to my dream is the road less traveled, and I believe we should have a super-highway instead of a dirt road. Imagine you could build software without fear of breaking existing behavior. That’s my dream. As a developer...
  • Blog Post: Writing Unit Tests in Visual Studio for Native C++

    My team frequently creates wizards that run in Windows PE as part of a Configuration Manager task sequence, and we write them in C++. I’m a big fan of TDD, so when I started to work on a new architecture for our wizards, I wanted to write all the code using TDD. When I asked around about writing C++...
Page 1 of 1 (8 items)