-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet-dotcover ... dotnet run in a blazor wasm project does not cover clientside code #78876
Comments
Expected Behavior Steps To Reproduce Exceptions (if any) .NET Version Anything else? |
Tagging subscribers to this area: @dotnet/area-extensions-hosting Issue Detailscommand run Building... this will produce a coverage file of the serverside code, but no mention of clientside code even though both are running Note that it seems like the client has issues connecting to the server as well when run in this fashion. The app runs fine if run with just dotnet run. The idea here is to start a clientside app locally, then run e2e tests with coverage using playwright or similar frameworks. Is this a supported option?
|
cc @TanayParikh |
Tagging subscribers to 'arch-wasm': @lewing Issue Detailscommand run Building... this will produce a coverage file of the serverside code, but no mention of clientside code even though both are running Note that it seems like the client has issues connecting to the server as well when run in this fashion. The app runs fine if run with just dotnet run. The idea here is to start a clientside app locally, then run e2e tests with coverage using playwright or similar frameworks. Is this a supported option?
|
+1 ... We are also interested in this use case. |
command run
dotnet-coverage collect -o "D:\output-dotnet-coverage.xml" --output-format xml dotnet run
Building...
info: Microsoft.Hosting.Lifetime[14]
Now listening on: https://localhost:7052/
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5052/
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: D:\Workspace\Clone\InterestCalculator\InterestCalculator.Client
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
Canceling...
Code coverage results: D:\output-dotnet-coverage.xml.
this will produce a coverage file of the serverside code, but no mention of clientside code even though both are running
Note that it seems like the client has issues connecting to the server as well when run in this fashion. The app runs fine if run with just dotnet run.
The idea here is to start a clientside app locally, then run e2e tests with coverage using playwright or similar frameworks. Is this a supported option?
The text was updated successfully, but these errors were encountered: