Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2

...

Code Block
languagetext
SL.DotNet.CoverageCollectorService.exe install --start

Register our agent as a profiler in the IIS services (two specific services - WAS and W3SVC):

...

Code Block
languagepowershell
SL.DotNet.exe startCollectorServiceSession --buildSessionIdFile buildSessionId.txt --labId my_labId --processName w3wp.exe --processTagapplicationPool DefaultAppPool --includeChildProcesses true

...

Now you can run any one of your tests that run against this IIS instance and capture coverage (Don’t forget to send a start and end command with the test stage name):

Info

See 'SeaLights .NET agent - Running tests' for details of how to run tests

...

Note: This command can be run on a remote machine (like the CI running the tests) while providing the host to start the session on it, using the parameter: --machine <IIS host> 

Un-installing the Coverage Collector Service

...

Code Block
languagepowershell
SL.DotNet.CoverageCollectorService.exe uninstall
Info

See 'SeaLights .NET - command reference' for full parameter details

...