SeaLights ADO Extension - Setting up the Build scan and Unit Tests
Adding Sealights steps to your project
In the Build & Release section of your project, go into Edit
Click Add tasks... Either under All or Build you will find three SeaLights build steps:
SeaLights Prepare for Build
SeaLights Start Test Execution
SeaLights End Test Execution
Add these three to your build process. It should look like the image below:
As SeaLights is using the compilation method's bytecode signature (Hash ID) to generate a unique identifier for each method, it is important NOT to recompile the application between the scan command and the deployment. The scanned build's artifact (DLL, EXE) MUST be from the exact same compilation as the one deployed.
Configuring relevant parameters in the steps
Place the SeaLights Prepare for Build before your Build solution step and fill in the parameters:
SeaLights settings
Include Namespaces - A comma-separated, key-sensitive list containing the namespaces you want to include in your build scan
Token - Enter an Agent token acquired from the SeaLights dashboard
Place the SeaLights Start Test Execution before your Test Assemblies step
Update the Test process architecture according to the architecture of your tested code