I’m a firm believer in the phrase: “What gets measured gets managed.” When it comes to unit testing code coverage is something we can use to measure how much of our code is under test. By no means does this mean that the code that is under test is actually covered by valid tests that…
Continue Reading »
Ok, stupid … but time consuming. If you edit your dashboard.config in CCNET to incldue NCoverExplorer details and for some reason the report NEVER SHOWS you need to do the following: Restart the CCNET Service Reset IIS (iisreset command) I forgot to do #2 and for an hour and a half I banged my head…
Continue Reading »
Written on
February 12, 2009 by
Donn in
.NET
Lou commented on the last post about using Expression and Func as an expression tool and came up with a much better solution than I had. I’m going to repost it here for everyone else to see in the RSS reader. This is the test class of whom we’d like to get the property (and…
Continue Reading »
Written on
February 10, 2009 by
Donn in
.NET
I’m using Castle Active Record for a project that I’m on and I constantly find myself having to provide column names when creating queries through the ActiveRecordMediator<T> object. Here’s an example: ActiveRecordMediator<Customer>.FindOne(Expression.Eq("FirstName", "Bob")); The column name “FirstName” is not strongly typed. If I change that name (or anyone else does) and they don’t use…
Continue Reading »
A simple tip to exclude certain tests from running during your automated build. In this scenario we have a bunch of tests inside of a particular DLL. Inside of these tests we have a folder that is for “integration tests”. These tests are run usually once a day in a nightly build and are also…
Continue Reading »