Skip to content

A code coverage tool for .NET 2 and above (WINDOWS OS only), support for 32 and 64 processes with both branch and sequence points

License

Unknown, Unknown licenses found

Licenses found

Unknown
License.md
Unknown
License.rtf
Notifications You must be signed in to change notification settings

ComptonAlvaro/opencover

 
 

Repository files navigation

OpenCover is a code coverage tool for .NET 2 and above (Windows OSs only - no MONO), with support for 32 and 64 processes and covers both branch and sequence points. OpenCover was started after attempts to make PartCover support 64-bit processes got just a little too complicated.

The latest releases can be downloaded from releases or from the OpenCover mirror site on bitbucket. Alternatively why not try the nuget package (this is the most popular).

Build Build status Coverity
Coverage Coveralls Coveralls Nemo SonarQube Nemo SonarQube
Nuget Nuget Nuget
Lead Times Issue Stats Issue Stats
Agreements CLA assistant
Review Ninja ReviewNinja

Build History

Master

The primary repo for the project is on GitHub and is also where the wiki and issues are managed from.

Team communication

Join the chat at https://gitter.im/OpenCover/opencover

Submissions and Community Licence Agreement

You will be asked to agree to a CLA as part of the submission process; first pull request only and it's all automatic no printing and signing etc. You can read the agreement here - OpenCover CLA and you can read our Q&A on the wiki as to why.

WIKI

Please review the wiki pages on how to use OpenCover and take particular interest in the Usage guide.

Issues

Please raise issues on GitHub, if you can repeat the issue then please provide a sample to make it easier for us to also repeat it and then implement a fix. Please do not hijack unrelated issues, I would rather you create a new issue than add noise to an unrelated issue.

Dropbox is very useful for sharing files alternatively you could create a gist.

Licence

All Original Software is licensed under the MIT Licence and does not apply to any other 3rd party tools, utilities or code which may be used to develop this application.

If anyone is aware of any licence violations that this code may be making please inform the developers so that the issue can be investigated and rectified.

Integration Test support

OpenCover was initially created to support unit testing techniques such as TDD and tools like NUnit and MSTest. Over time others have found ways to use OpenCover for integration testing especially in tricky scenarios such as IIS and Windows Services. I'll put links here as to how people have achieved this however as they say YMMV (You Mileage May Vary).

Mono support

It isn't, sorry - this tool uses the profiler API that is currently only available to .NET Frameworks running on the Windows platform.

IIS support

Please refer to the wiki - IIS Support

DNX support

Please refer to the wiki - DNX Support

Win8/Win10 Application Support

Not yet implemented. Sorry no user call/demand for it, I assume the WPF way of separating model and UI has led to people getting all they need from unit-tests; I know how that is how it works for me.

Service support

Please refer to the wiki - Service Support

Silverlight support

Please refer to the wiki - Silverlight support

Building

You will need:

  1. Visual Studio VS2015 (Community Edition) or later with C# and C++ (with Service Pack 2)
  2. WiX 3.10 or later (http://wix.codeplex.com/releases/view/619491)
  3. SpecFlow for Visual Studio 2015 (https://visualstudiogallery.msdn.microsoft.com/c74211e7-cb6e-4dfa-855d-df0ad4a37dd6)
  4. Windows SDK 8 and .NET Framework Tools (https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx)

All other software should be included with this repository.

NANT scripts (encapsulated by the build.bat file) are used to build the project outside visual studio and will run all unit tests.

To build the code in 32-bit Debug mode just run Build in the root of the project folder.

To build a release package including installer, zip and nuget packages use

build create-release

Build Server

The OpenCover team is using Appveyor for automated building. It runs a staged equivalent of

build create-release

and stores all the information about tests, coverage and other build artefacts; you can use these builds if you want to be 'cutting' edge but support will be limited.

We have also suppied the appveyor.yml to make it easy for any forks to have their own builds on AppVeyor. If you send a pull-request the CI system will test your commits (which saves the team time if we do it ourselves)

Coverage

The current OpenCover coverage (found by dogfooding OpenCover on its own tests) can be viewed here

Code Coverage via Coveralls

Reports

For local viewing of the output from OpenCover start here.

Latest Drop as ZIP

No Git? Don't worry you can download the latest code as a zip file.

Thanks

I would like to thank

  • AppVeyor for allowing free build CI services for Open Source projects,
  • Coveralls for allowing free services for Open Source projects,
  • NDepend for my NDepend licence,
  • the guys at CodeBetter, Devlicious and Los Techies who orignally arranged my MSDN licence all those years ago without which I doubt I'd have been able to start OpenCover (now no longer needed as we can build OpenCover using the VS2013 Community Edition),
  • the NextGenUG and their free swag from where I got lots of useful tools,

I'd also like to thank my family, employers, colleagues and friends for all their support.

About

A code coverage tool for .NET 2 and above (WINDOWS OS only), support for 32 and 64 processes with both branch and sequence points

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
License.md
Unknown
License.rtf

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 73.8%
  • C++ 23.1%
  • XSLT 1.3%
  • Batchfile 0.9%
  • C 0.6%
  • PowerShell 0.2%
  • Gherkin 0.1%