OpenCover / opencover

A code coverage tool for .NET 2 and above (WINDOWS OS only), support for 32 and 64 processes with both branch and sequence points
https://blog.many-monkeys.com
Other
1.31k stars 247 forks source link

cross-platform opencover for .net core on Linux/MacOS #703

Open sawilde opened 7 years ago

sawilde commented 7 years ago

Please provide the following information when submitting an issue, where appropriate replace the [ ] with a [X]

My Framework

My Environment

I have already...

My issue is related to (check only those which apply):

Expected Behavior

Run OpenCover on Linux or Mac OS

sawilde commented 7 years ago

Also wanted by the .net core team - https://github.com/dotnet/corefx/issues/17107 But also dependant on the work porting the profiling API to .net core - https://github.com/dotnet/coreclr/issues/445

pms1969 commented 7 years ago

@sawilde How's this looking. We're just about to convert our codebase to dotnetcore2.0, and code coverage will be an important part of our build, so looking around, OpenCover looks a good choice for us.

I appreciate it might take a bit of work, and happy to do what I can to help and make this work for linux. Any pointers to get me started?

sawilde commented 7 years ago

@pms1969, as far as I know, the API has not yet been created/released for those platforms to allow the OpenCover work to even start.

pms1969 commented 7 years ago

Ok, that's a shame. I'll keep an eye out for it, and dig around the or release repos.. is it a native app, or just a .net lib?

johnnyasantoss commented 7 years ago

Is this already working on Linux? I saw that the profiler is already ported to it. Profiler Status

sawilde commented 6 years ago

@johnnyasantoss no-one is working on a linux implementation yet AFAIK - not sure when that will happen.

FastNinja commented 6 years ago

someone this guy managed to build a workaround - we tested and it measured code coverage on Linux for a mid size production DotNet cover project. https://github.com/lucaslorentz/minicover It is not a standard Microsoft way - more like a hack/workaround. but it works!

andrericardo commented 6 years ago

Another project for "Cross platform code coverage library for .NET Core"

https://github.com/tonerdo/coverlet

SteveGilham commented 6 years ago

Yet another https://github.com/SteveGilham/altcover

giorgiozoppi commented 5 years ago

Ok back in town to help, is there anyother willing to help on this. Just to know?

zaiboot commented 5 years ago

How can I help?