How to cover web application with dotCover CLT
-
Start the coverage of dotnet running the app (after "--" pass arguments for dotnet executable):
.\dotCover.exe dotnet --StartInstance=1 --output=AspNetCoreWebAPI.html --ReportType=HTML -- run --project C:\path\to\application\SampleWebApiAspNetCore\SampleWebApiAspNetCore.csproj
-
Interact with the app on its URL. For example, for Swagger at
https://localhost:7124/swagger/index.html
Selenium scripts can also be run at this stage. -
Finish coverage session:
.\dotCover.exe send --Instance=1 --Command=GetSnapshotAndKillChildren
Please sign in to leave a comment.