dotcover

TeamCity dotCover report path for Sonar

一笑奈何 提交于 2019-12-02 21:03:39
I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage. My next step is the sonar-runner. The configuration that currently exists is; gallio.mode=dotCover, sonar.gallio.mode=reuseReport but I also need sonar.gallio.reports.path. Does anybody know the path to the dotCover report generated in the the previous step? I couldn't find a way to do this using the built in NUnit runner. I managed to get it working by using a powershell build step to manually call the required commands. First

dotCover not showing all of the projects in a solution

て烟熏妆下的殇ゞ 提交于 2019-12-01 05:52:28
Let me start by saying I'm new to both ReSharper and dotCover and that I'm using v10.0.2 of both. The attached screenshot shows solution explorer in VS and the coverage tree for a set of tests. Whenever I run coverage, it always shows the same subset of assemblies in the coverage tree. Importantly, all of the tests shown are for code in either the Services or Infrastructure assemblies, neither of which show in the coverage tree. Clearly, the product is not doing something right or I'm not. Why are only some of the assemblies shown in the coverage tree? Why aren't any of the assemblies covered

dotCover not showing all of the projects in a solution

℡╲_俬逩灬. 提交于 2019-12-01 04:19:10
问题 Let me start by saying I'm new to both ReSharper and dotCover and that I'm using v10.0.2 of both. The attached screenshot shows solution explorer in VS and the coverage tree for a set of tests. Whenever I run coverage, it always shows the same subset of assemblies in the coverage tree. Importantly, all of the tests shown are for code in either the Services or Infrastructure assemblies, neither of which show in the coverage tree. Clearly, the product is not doing something right or I'm not.

How do I exclude types and methods from being covered by dotCover in TeamCity?

家住魔仙堡 提交于 2019-11-29 19:50:13
I've got an existing C# 4 project which I've checked the test coverage for by using TestDriven.Net and the Visual Studio coverage feature, i.e. Test With -> Coverage from the context menu. The project contains some code I don't want covered, and I've solved that by adding the [ExcludeFromCodeCoverage] for those types and methods. We've just upgraded TeamCity to 6.0.3, and I've added dotCover coverage to the NUnit build step. I've managed to remove coverage for external assemblies such as NHibernate in the "Filters" section (by explicitly state the assemblies for which I want coverage), but I'm