opencover

Make OpenCover reports available in CruiseControl.NET

蓝咒 提交于 2019-12-09 06:09:40
问题 I'm trying to integrate OpenCover with CruiseControl.NET. At this point I've modified by build system so it runs my nunit tests under OpenCover. I then generate Xml and Html reports from those using ReportGenerator. Assuming it's possible to integrate the reports generated by ReportGenerator into the CruiseControl.NET webapp, how do I integrate the two? NCover has it's own NCoverReporting task that can be used, but as I'm not running NCover I can't compare its output with the XML reports

How to exclude classes from an OpenCover report

情到浓时终转凉″ 提交于 2019-12-08 18:08:12
问题 In generating coverage reports with OpenCover (and then generating an HTML report with ReportGenerator) for an MSTest suite, I am trying to exclude framework generated classes. In particular, classes generated under the project's namespace by a service reference. The command I am using to generate the XML files looks like: OpenCover.Console.exe -register:user "-target:MyProject.Tests.dll" -targetargs:"/testcontainer:MyContainer" -output:coverage.xml -mergebyhash -filter:-*.AWebService.* I

How can I fail a TeamCity build if dotCover doesn't report a high enough result?

微笑、不失礼 提交于 2019-12-07 02:50:41
问题 I would like TeamCity to run my mSpec tests and report on the code covered by the tests. I would also like TeamCity to report that a build has failed if code coverage in certain namespaces doesn't meet a threshold (e.g. MyProduct.ImportantStuff must be 100% , but MyProduct.LegacyStuff must be [ 23% or whatever it currently is to ensure we don't add new stuff without covering tests ]. I initially looked at dotCover as it's integrated into TeamCity. I have since been looking at OpenCover as I

How can I fail a TeamCity build if dotCover doesn't report a high enough result?

柔情痞子 提交于 2019-12-05 08:18:48
I would like TeamCity to run my mSpec tests and report on the code covered by the tests. I would also like TeamCity to report that a build has failed if code coverage in certain namespaces doesn't meet a threshold (e.g. MyProduct.ImportantStuff must be 100% , but MyProduct.LegacyStuff must be [ 23% or whatever it currently is to ensure we don't add new stuff without covering tests ]. I initially looked at dotCover as it's integrated into TeamCity. I have since been looking at OpenCover as I couldn't get TC to fail the build on low coverage. I got OpenCover working but I would still like to

Opencover with multiple assemblies

有些话、适合烂在心里 提交于 2019-12-03 22:53:11
I am trying to combine three unit testing projects (three different dlls) into one OpenCover report. Is it possible? I tried to look into filters but I don't see enough detail (examples) in the OpenCover Wiki site. Can someone shed some lights on where I can start? Thanks a lot! Yes it is possible. If you are using nunit (or some other test runner) you can (usually) run all test assemblies at the same time e.g. opencover.console.exe -register:user "-target:nunit-console.exe" "-targetargs:test1.dll test2.dll /noshadow" "-filter:+[*]* -[test*]*" alternatively if you are using different test

OpenCover: possible to merge multiple reports into one?

。_饼干妹妹 提交于 2019-12-03 12:31:46
I'm using OpenCover to generate functional test coverage for a web application. These tests are fairly long running (3+ hours), so we've chopped them up into multiple tests that run in parallel. So instead of a single coverage report, there are six. In order to import these coverage reports into SonarQube, I need to figure out a way to combine them into one uber report. ReportGenerator supports merging multiple reports into one, but creates HTML output, which is not something SonarQube can consume. At this point my options are hand-roll an OpenCover report merger (blech!) Run my functional

Make OpenCover reports available in CruiseControl.NET

南楼画角 提交于 2019-12-03 07:33:58
I'm trying to integrate OpenCover with CruiseControl.NET . At this point I've modified by build system so it runs my nunit tests under OpenCover. I then generate Xml and Html reports from those using ReportGenerator . Assuming it's possible to integrate the reports generated by ReportGenerator into the CruiseControl.NET webapp, how do I integrate the two? NCover has it's own NCoverReporting task that can be used, but as I'm not running NCover I can't compare its output with the XML reports generated by OpenCover. Related thoughts / questions: OpenCover generates an XML file by default, but is

How do I use OpenCover and ReportGenerator to view Unit Test Coverage Results?

隐身守侯 提交于 2019-12-03 02:38:59
问题 I'm a noob to using both OpenCover and ReportGenerator and I'm struggling a bit in understanding how to get them working. I'm using VS.NET 2012 'Professional' which means I don't have access to the built in unit test coverage tooling. I also have ReSharper installed, but don't want to pay for another utility in 'dotCover' It looks like OpenCover and ReportGenerator will do what I need and I see the documentation that was downloaded alongside, but am missing some understanding. 1st off, when I

How do I use OpenCover and ReportGenerator to view Unit Test Coverage Results?

Deadly 提交于 2019-12-02 16:12:43
I'm a noob to using both OpenCover and ReportGenerator and I'm struggling a bit in understanding how to get them working. I'm using VS.NET 2012 'Professional' which means I don't have access to the built in unit test coverage tooling. I also have ReSharper installed, but don't want to pay for another utility in 'dotCover' It looks like OpenCover and ReportGenerator will do what I need and I see the documentation that was downloaded alongside, but am missing some understanding. 1st off, when I download the nuget packges for both, what should my target project be? I have a multi layer app, so I

Integration of OpenCover with TFS

送分小仙女□ 提交于 2019-12-02 11:29:19
I am new to TFS and want to integrate OpenCover with TFS. If any has done this please help! This question is rather old but maybe you are still interested. With current Version of TFS (2015 Update 2) this is now possible as a "vsts Extension". See here for details: https://github.com/RobertK66/vsts-opencover Since the answer doesn't specify the version of TFS, here is an answer for 2015/2017. OpenCover can be run from TFS using the Powershell build step. You need to get the contents of the OpenCover NuGet package onto TFS and run OpenCover.console.exe from there. Since TFS doesn't support the