Questions tagged [ncover]

`NCover` is the original `.NET` code coverage tool. Code coverage is a software testing metric that shows which lines of source code have been tested and which lines of source code have been missed.

INDUSTRY-LEADING CODE COVERAGE ENGINE

NCover is the original .NET code coverage tool. Code coverage is a software testing metric that shows which lines of source code have been tested and which lines of source code have been missed. This insight allows you to improve both your testing and your code with the goal of ultimately increasing revenue and reducing costs. By providing sequence point, branch, and method coverage, NCover leads the industry in metrics provided and helps you and your entire team make the best use of time and resources.

32 & 64-BIT SUPPORT

NCover supports both 32 and 64 bit systems, so no matter what your machine configuration, NCover can support you and your team. On 64-bit systems, NCover takes advantage of the increased processing power and memory utilization to provide a best-in-class code coverage experience.

BUNDLED SUPPORT

Every purchase of NCover comes with a full year of technical support and access to product updates and upgrades. As an organization, we are fundamentally committed to making sure that you and your team get the most out of NCover and that it works as promised. Whether you prefer to receive assistance via e-mail, online interactive sessions or even by phone, we have you covered. We also fully support all NCover trial customers, so you can experience what it means to be an NCover customer prior to purchasing.

DOCUMENTATION

If you have a question, or are in the process of determining the best way to integrate NCover into your code coverage process, we have robust documentation on all NCover applications. Documentation can be accessed online and, for Code Central, Desktop and Collector, can also be accessed within the NCover application without the need for an Internet connection. Our online documentation is available to trial customers or anyone who wants to learn more about NCover.

OPTIMIZED MEMORY CONSUMPTION

While NCover is more powerful than ever, it is designed to reduce overall memory consumption. Through a series of memory, cache and data structure optimizations, NCover can handle large projects without the traditional memory bottlenecks associated with code coverage solutions. In addition, the ability to easily manage multiple projects and consolidate execution runs gives you control over the level of system resources required to effectively manage your code base.

AUTO UPGRADE & UPDATE

Whenever there is an upgrade or update for NCover, you will always be the first to know. For Code Central, Desktop and Collector, you will see a small yellow badge located in the top left corner of the application. Simply click on the badge and select that you would like to install the upgrade or update. The installer will automatically take care of the rest. For Bolt, you will be alerted and can manage upgrades and updates with Visual Studio's Gallery Update function. Every purchase of NCover comes with a full year subscription to upgrades and updates.

137 questions
0
votes
1 answer

Nunit test case for Catch part of a function

public int ReturnFromDB(int input) { try { return repositorymethod(input); } catch(RepositoryException ex) { Throw new ParticularException("some message",ex); } } The repositorymethod() uses a select query…
user1890098
  • 473
  • 2
  • 10
  • 24
0
votes
1 answer

Running NCover from code

Is it possible to run NCover automatically from code instead of running NCover manually or via command line? Here is the scenario, I have written a few tests, I execute all the tests and after the tests are completed, NCover should run…
user1890098
  • 473
  • 2
  • 10
  • 24
0
votes
0 answers

Problems with NCover 4.5 and Silk4Net (Controls are not identified correctly)

Currently we are using Silk4Net to implement classic regressions GUI tests for a C# WinForms application. We gathered the Code Coverage of those tests via NCover 4.3 and everything worked fine. Last week we updated NCover to the newest Version…
Hugooo
  • 1
  • 2
0
votes
1 answer

NUnit TestCase tests seem to be ignored by NCover

NCover seems to refuse to report coverage from NUnit parameterized tests. This goes fine: [Test] public void CreateImportTvShowsModelTests() { var importTvShowsModel = new ImportTvShowsModel(_fileUtilities, null, _tvShowLibrary,…
bas
  • 13,550
  • 20
  • 69
  • 146
0
votes
1 answer

finding the code coverage by refering Uni Test dll through Ncover code central

I am using ncover code central put on a server and collector on my desktop . now I m able to find the coverage of exe (my appliation) when manual tests or tests on gui by launching the application are executed but i want to profile the dll of my…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

Unit test the code of an event handler

How do I test the code of an event handler? I have this [TestMethod] [ExpectedException(typeof(XmlException))] public void TheXMLValidationEventHandlerWorksOK() { string xSDFilePath = @"XML Test Files\wrongXSDFile.xsd"; …
Kaikus
  • 1,001
  • 4
  • 14
  • 26
0
votes
1 answer

Getting top level exception on using //cf flag in ncover to exclude properties from Coverage reports

I am using //cf flag to exclude properties from the ncover coverage report like //cf "*get_*":Method but i am getting error 2000 " top level exception" Unrecognised comandline option cf. Please suggest what to do. Thanks priya
priya
  • 852
  • 18
  • 39
0
votes
1 answer

NCover not picking up web application dlls

Im using NCover 1.5.8, and its doesn't seem to produce and metrics relating to my website applications. The ncover output indicates the tests relating to the website have been run. Is there anything special I need to do for website dlls?
Dan
  • 29,100
  • 43
  • 148
  • 207
0
votes
1 answer

Creating Merged Html report with Ncover

I am able to create the merged xml reports of several xml files using ncover.reporting.exe but I want the consolidated report in html format having all those graphs and coverage summary. Please suggest how to modify the below statement to get the…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

NCover Exclude Anonymous Types

I am using TeamCity with NCover integration and we want to exclude anonymous types from our code coverage reports. Is this possible? I've searched through the documentation and can't not find any mention of how or if this can be done.
devfunkd
  • 3,164
  • 12
  • 45
  • 73
0
votes
1 answer

Ncover returns error #20000

I am executing Ncover.Console.exe with gallio.echo in the following manner Ncover.Console.exe //pm Gallio.Host.exe But Ncover returns error #20000 " no data collected". gallio version 3.4 Ncover complete trial version : 3.4 Please suggest.
priya
  • 852
  • 18
  • 39
0
votes
1 answer

How do I stop NCover from hijacking every .NET assembly?

I know that this, strictly speaking, is not a programming question, but I think the only people who can answer it are programmers. I've never had this happen before, but on one workstation where I have NCover installed, it seems to be intercepting…
Ed Altorfer
  • 4,373
  • 1
  • 24
  • 27
0
votes
1 answer

How do I fix a NCover "Duplicate method was added" error

Having performed some refactoring I am now finding that NCoverExplorer is unable to merge my test results. With NCover and NCoverExplorer v3.2.2 the merge appeared to work, but NCoverExplorer would fail to open the merged file with an error…
GraemeF
  • 11,327
  • 5
  • 52
  • 76
0
votes
3 answers

NCover not covering an assembly?

I am having trouble getting NCover to properly cover a .dll. I have several test projects that use XUnit.NET and SubSpec to execute BDD-style specifications. All but one of these test suites runs perfectly in the version of NCover that comes with…
jrista
  • 32,447
  • 15
  • 90
  • 130
0
votes
1 answer

Relative paths with NCover and MSTest.exe

I know this is stupid, but I can't figure it out. In our solution, we specify the relative paths to a file one of our tests needs as - ../../../TestSuite/IniTestFiles/LocalRedir1.xml Now, this works fine when running the testing out of VS with…
Steve
  • 11,763
  • 15
  • 70
  • 103