ncover

transform opencover xml output to ncover xml

微笑、不失礼 提交于 2020-01-04 04:19:06
问题 I need the ability to import opencover coverage results in to Jenkins to pull coverage trending data over time. It appears that the best way to do this is going to be finding a way to convert the opencover xml format to ncover format, and then use the NCover plugin to import the results. Is there an existing xslt that will transform opencover to ncover, or an open source tool that will do the conversion? I've searched, and I'm finding nothing. thanks 回答1: The following XSLT is available on

NCover 1.5.8 with Moles/Pex and NUnit

给你一囗甜甜゛ 提交于 2019-12-23 05:19:33
问题 I'm having trouble getting the following to work together. NCover 1.5.8 (the version shipped with TestDriven.NET) NUnit 2.5 (the version shipped with TestDriven.NET) Moles and Pex I'm using Windows 7 x64 with a .NET 4.0 Pex and Moles test library I have tried to follow tips from this similar question (about getting Moles to work with MSTest) and related links. I did manage to get Moles and NUnit to work together thanks to this answer, but I cannot get it to work with NCover. Here's a batch

Where to get NCover from?

馋奶兔 提交于 2019-12-18 19:33:23
问题 I realise NCover has gone commercial. I am looking for the free version. Where do i get the latest free version of NCover? The NCover website only talks about a trial version of the commercial product, not the free version. 回答1: the commercial NCover vendors still make the free version available here http://downloads.ncover.com/NCover-1.5.8.zip 回答2: Download Test Driven.net http://testdriven.net/download.aspx (a great tool) It uses the free version of ncover, after installation you can look

Use attribute to omit code from coverage analysis in Visual Studio

心不动则不痛 提交于 2019-12-18 12:57:07
问题 I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverage on the classes I actually care about. Right now I have to exclude the results after the fact. What I would like to do is use an attribute to mark those classes as excluded so that they aren't included to begin with. Is there any way to decorate a class with an attribute that will automatically

Force NCover 1.5.8 to use v4 framework like testdriven.net does?

流过昼夜 提交于 2019-12-18 10:37:15
问题 I want to run coverage from the command line, but can't seem to get NCover 1.5.8 to instrument the code. It must be possible as when I run coverage tests with TestDriven.net it works. the difference seems to be that TD.NET is able to get NCover to use framework 4.0 (you get this in the log when it runs : MESSAGE: v4.0.30319 ) but from the command line I can't make it (I get this in the log : MESSAGE: v2.0.50727 ) So how can I make NCover play nice with nunit from the commandline, like it does

Setting up NCover for NUnit in FinalBuilder [closed]

冷暖自知 提交于 2019-12-13 12:09:17
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a

.NET - determining which test cases covered a method

核能气质少年 提交于 2019-12-13 00:12:18
问题 I want to know the tests that cover a particular method. However, NCover does not provide this information. I dont want to use VSTS as my code is not in TFS. Is there any way/tool to do that in .NET? 回答1: Fundamentally what you have to do is to run your test coverage tool once for each test, producing a coverage vector for that test. If you have hundreds of tests, you can collect coverage for each test separately. Then if coverage vector N covers a method, test N caused that coverage. I don't

Setting up NCover for NUnit in FinalBuilder [closed]

China☆狼群 提交于 2019-12-04 14:49:18
Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a .NET 4.0 C# project, but my final coverage output file contains no coverage data. I am using: NCover 3.3.2 NUnit 2.5.4 FinalBuilder 6.3.0.2004 All tools are the latest official as of today. I've finally managed to coax FB into running my unit tests under NCover for the .NET 4.0 project, so I get Tests run: 184, ... , which is correct. However, the final Coverage.xml file output from NCover is almost empty, and looks like this: <?xml version="1.0

Where to get NCover from?

与世无争的帅哥 提交于 2019-11-30 18:03:53
I realise NCover has gone commercial. I am looking for the free version. Where do i get the latest free version of NCover? The NCover website only talks about a trial version of the commercial product, not the free version. Stephen Ward the commercial NCover vendors still make the free version available here http://downloads.ncover.com/NCover-1.5.8.zip Download Test Driven.net http://testdriven.net/download.aspx (a great tool) It uses the free version of ncover, after installation you can look here: C:\Program Files (x86)\TestDriven.NET 3\NCover\1.5.8 NCover is a commercial product now. You

Use attribute to omit code from coverage analysis in Visual Studio

我是研究僧i 提交于 2019-11-30 06:46:59
I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverage on the classes I actually care about. Right now I have to exclude the results after the fact. What I would like to do is use an attribute to mark those classes as excluded so that they aren't included to begin with. Is there any way to decorate a class with an attribute that will automatically exclude it from coverage analysis? Either VS coverage analysis or nCover will work. FWIW, these are