I need a free code coverage tools in .NET for personal project. NCover is bit expensive for person use.
问题:
回答1:
Discontinued versions of NCover are still free (and still work quite well, in my opinion). Get them here.
UPDATE (20th Nov, 2012): I believe OpenCover is now the best option. I've used it with great success on my current .NET 4 project.
回答2:
OpenCover is the successor of PartCover and actively developed (as of feb. 2013).
Find it on GitHub or install as a NuGet.
From the creator of both products:
NOTE: PartCover is now in Maintenance mode (fixes only) all new development is being done on OpenCover which now has 32/64 bit support and also supports branch as well as sequence coverage.
You may also wish to use ReportGenerator to get human-friendly reports.
Available on Codeplex and also as a NuGet.
As far as I can tell, it's the reporting part that lags behind commercial offerings, lacking custom aggregation/drill-down abilities, but it's certainly usable.
回答3:
give PartCover a try, but i dont know if it works with .Net 3.x ! PartCover download on sourceforge
回答4:
I have created a simple Visual Studio extension for OpenCover, while it is somewhat barebones as of now it looks and works much better than the other free solutions I have found. Also I made it free under MIT license, so you can use it / modify it as needed. It is called AxoCover and you can download it from Visual Studio, or here. Source code is on GitHub.