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 am referring to the scenario15 of the Calculator sample application in the documentation.
In the doc of Sample scenarios, moreover in the chapter Sessions you are describing very well how to:
Start the code coverage collection with the session scenario-x in the background and in server-mode, and providing the config e.g. output directory and format.
Start webapp-x by connecting to that given session-id- a session-id and the dotnet run command.
Run your dotnet testcommand within the
Shutdown and close your session / server
but let's say, given:
a session-id: scenario-x
an ASP NET Core web application: webapp-x running on a different machine (e.g. a K8s pod on a namespace webapps) and is exposed with a public IP address within a VNET to restrict access by (e.g. an Agent, which is running integration and e2e tests against this app).
integration tests: tests-x triggered again on a another machine (e.g. an agent running an Azure DevOps YAML pipeline) which also is interested to get the code coverage to e.g. push the test results to SonarCloud.
Is it possible to to accomplish that? Can test-x and webapp-x connect to the scenario-x, to exchange code coverage?
In the documentation you are "connecting" to this "session" via the session-id. But does this only work if they are on the same machine? Is there any way to run and collect test coverage of a remotely running application?
I am planning to run e2e tests against a running application running on a different machine, and I was assuming that exactly this server mode feature of the dotnet coverage tool provides this.
Thanks in advance 😄.
The text was updated successfully, but these errors were encountered:
sahinM
changed the title
Question: How to get coverage from a real remote running .NET server/session?
Question: How to get coverage from a remote running .NET server/session?
May 14, 2024
sahinM
changed the title
Question: How to get coverage from a remote running .NET server/session?
Question: How to get test coverage from a remote running .NET server/session?
May 14, 2024
I am referring to the scenario15 of the Calculator sample application in the documentation.
In the doc of Sample scenarios, moreover in the chapter Sessions you are describing very well how to:
dotnet run
command.dotnet test
command within thebut let's say, given:
session-id
: scenario-xIs it possible to to accomplish that? Can test-x and webapp-x connect to the scenario-x, to exchange code coverage?
In the documentation you are "connecting" to this "session" via the
session-id
. But does this only work if they are on the same machine? Is there any way to run and collect test coverage of a remotely running application?I am planning to run e2e tests against a running application running on a different machine, and I was assuming that exactly this server mode feature of the dotnet coverage tool provides this.
Thanks in advance 😄.
The text was updated successfully, but these errors were encountered: