Code coverage with TFS 2015
-
We are currently using TFS 2015 for our CI builds. We use the Microsoft unit testing framework that ships with VS 2015 to create our unit tests and we run these as part of our TFS 2015 build process. We'd like to extend our unit testing to include code coverage. We can't use the VS 2015 / TFS 2015 code coverage tools as these require an enterprise licence and we only have a professional licence (although we would consider upgrading if necessary). We're looking for a code coverage tool that we can hook into our TFS 2015 build and that produces meaningful output (e.g. coverage reports). If possible it would be good if the same tool integrated into the VS 2015 IDE to give real-time coverage. All recommendations and suggestions welcome.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter
-
We are currently using TFS 2015 for our CI builds. We use the Microsoft unit testing framework that ships with VS 2015 to create our unit tests and we run these as part of our TFS 2015 build process. We'd like to extend our unit testing to include code coverage. We can't use the VS 2015 / TFS 2015 code coverage tools as these require an enterprise licence and we only have a professional licence (although we would consider upgrading if necessary). We're looking for a code coverage tool that we can hook into our TFS 2015 build and that produces meaningful output (e.g. coverage reports). If possible it would be good if the same tool integrated into the VS 2015 IDE to give real-time coverage. All recommendations and suggestions welcome.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter
You can use the OpenCover.UI extension for code coverage check inside Visual Studio. https://visualstudiogallery.msdn.microsoft.com/6950a046-8919-4935-8542-c6f37956f688 . It supports MSTest, nUnit and xUnit.
-
You can use the OpenCover.UI extension for code coverage check inside Visual Studio. https://visualstudiogallery.msdn.microsoft.com/6950a046-8919-4935-8542-c6f37956f688 . It supports MSTest, nUnit and xUnit.
Since posting my question I've decided to use dotCover from JetBrains as it has a command-line interface that we can use for automating code coverage from within our build process.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter