You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm successfully able to generate code coverage reports using AltCover for a .NET Framework console application, but I’m facing an issue when trying the same with an ASP.NET MVC (4.7.2) application — the coverage report always shows 0 visited.
Here are the exact steps I followed (paths partially hidden):
Despite following these steps, the report always shows 0% coverage for the ASP.NET MVC app.
Is there something specific I need to do differently for MVC applications under IIS? Would appreciate any guidance on troubleshooting or setup adjustments.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Steve and team,
I'm successfully able to generate code coverage reports using AltCover for a .NET Framework console application, but I’m facing an issue when trying the same with an ASP.NET MVC (4.7.2) application — the coverage report always shows 0 visited.
Here are the exact steps I followed (paths partially hidden):
Instrument assemblies:
altcover --inputDirectory "E:...\samaltcovermvc\bin" --outputDirectory "E:...\samaltcovermvc\instrumented" --report "coverage.xml"
Copy instrumented files back:
Copy-Item -Path "E:...\samaltcovermvc\instrumented*" -Destination "E:...\samaltcovermvc\bin" -Recurse -Force
Start the app via IIS and browse multiple pages.
Collect coverage data:
altcover runner --recorderDirectory "E:...\samaltcovermvc\bin" --collect
Generate report:
reportgenerator -reports:"coverage.xml" -targetdir:"coveragereport"
start coveragereport\index.html
Despite following these steps, the report always shows 0% coverage for the ASP.NET MVC app.
Is there something specific I need to do differently for MVC applications under IIS? Would appreciate any guidance on troubleshooting or setup adjustments.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions