Capturing coverage from the app process
Capture runtime coverage by wrapping the target process or by using a background listener.
Running the process with run
run.\sl-dotnet-agent\SL.DotNet.exe run --buildSessionIdFile buildSessionId.txt --labId "<lab-id>" --includeNamespace "MyCompany.*" --instrumentationMode coverage --target "C:\MyApplication\App.exe" --workingDir "C:\WorkingDir" --targetArgs "-Flag1 true"./sl-dotnet-agent/SL.DotNet run --buildSessionIdFile buildSessionId.txt --labId "<lab-id>" --includeNamespace "MyCompany.*" --instrumentationMode coverage --target "/opt/my-app/MyApplication" --workingDir "/opt/my-app" --targetArgs "--flag1 true"Running the agent as a background listener
Start the background listener
.\sl-dotnet-agent\SL.DotNet.exe startBackgroundTestListener --buildSessionIdFile buildSessionId.txt --labId "<lab-id>" --includeNamespace "MyCompany.*" --testListenerSessionKey SL_CovCollectorAgent./sl-dotnet-agent/SL.DotNet startBackgroundTestListener --buildSessionIdFile buildSessionId.txt --labId "<lab-id>" --includeNamespace "MyCompany.*" --testListenerSessionKey SL_CovCollectorAgentSet the agent as a profiler
Stop the background listener
Last updated
Was this helpful?

