Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can I use for good quality code coverage for C#/.NET? [closed]

People also ask

What is the best code coverage?

With that being said it is generally accepted that 80% coverage is a good goal to aim for. Trying to reach a higher coverage might turn out to be costly, while not necessary producing enough benefit. The first time you run your coverage tool you might find that you have a fairly low percentage of coverage.

What is code coverage in C?

Code coverage measures the number of lines of source code executed during a given test suite for a program. Tools that measure code coverage normally express this metric as a percentage. So, if you have 90% code coverage then it means, there is 10% of the code that is not covered under tests.

Which tools can be used for Javascript test code coverage?

#1) Parasoft JTest Parasoft Jtest is one of the products of Parasoft testing tools suite. Jtest allows you to speed up the Java-based applications development with minimum risk, proper guidance, and analysis. It is used for unit test and code coverage integrated with manual and automation testing.


I use the version of NCover that comes with TestDriven.NET. It will allow you to easily right-click on your unit test class library, and hit Test With→Coverage, and it will pull up the report.


An alternative to NCover can be PartCover, is an open source code coverage tool for .NET very similar to NCover, it includes a console application, a GUI coverage browser, and XSL transforms for use in CruiseControl.NET.

It is a very interesting product.

OpenCover has replaced PartCover.


JetBrains (of ReSharper fame) has been working on a coverage tool for a little while called dotCover. It's showing a great deal of promise.


I just tested out NCrunch and have to say I am very impressed. It is a continuous testing tool that will add code coverage to your code in Visual Studio at almost real time. At the time as I write this NCrunch is free. It is a little unclear if it going to be free, cost money or be opened source in the future though.