Closed MahiFaiyaz closed 2 months ago
It is possible. You need to do something similar to: https://github.com/microsoft/codecoverage/blob/main/samples/Calculator/scenarios/scenario10/README.md
Instrumented dlls will be communicating with dotnet-coverage server using shared memory and pipes so you can still see some issues related to security. Try to make sure for example that both IIS server and coverage collection are running as same user.
Added documentation how to get code coverage for IIS service: https://github.com/microsoft/codecoverage/tree/main/samples/VisualStudio/scenarios/scenario08#readme
You can follow this example using also dotnet-coverage
but dotnet-coverage
doesn't support security features (AllowedUsers
) so both collection and IIS service need to be executed using same user.
While I am getting all code coverage of my .NET services, it does not seem to track any API calls made through the IIS service. Does this tool support code coverage for IIS services?