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 248 forks source link

OpenCover IIS10 support #666

Open ghost opened 7 years ago

ghost commented 7 years ago

My Framework

My Environment

I have already...

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

Expected Behavior

Expected to execute IIS10 via OpenCoverConsole application with -debug mode and get the site loaded and get the footprints collected.

Actual Behavior

I have tried to run OpenCover on Win10 and IIS10 and seems like IIS10 haven't run the website on "debug" mode, hence no footprints were collected.

Steps to reproduce the problem:

1) net stop w3svc /y

2) Run batch file like this: "%MyRootFolder%\opencover-master\main\bin\Debug\OpenCover.Console.exe" -target:"C:\Windows\System32\inetsrv\w3wp.exe" -targetdir:"%MyRootFolder%\OpenCoverTestApp\MyWebApp" -targetargs:-debug -output:"%MyRootFolder%\OpenCoverTestApp\TestResults\coverage-iis.xml" -filter:"+[]" -register:administrator

3) The site is not loaded on IIS10

Thanks for your assist!

Eyal

sawilde commented 7 years ago

We don't currently support IIS10

RogueJay commented 7 years ago

Try removing all bindings on the web site except for http. That seems to work for us