...
Gathering coverage and test information using the SeaLights Node.jsTest Listener is done in a few steps, we recommend to use the Lab ID for this. If your component does not yet support the Lab ID option, use the Build Session ID .
There are 4 basic steps to gathering coverage and test information using the SeaLights Node.js Agent (slnodejs
).
Start the test stage with
slnodejs start ...
Run the Tests
Upload Test Reports
End the test stage with
slnodejs end...
For all of the commands on this page, either the Lab ID OR the Build Session ID must be passed as a parameter. For each step, there is one example demonstrating use of the Lab ID and one example demonstrating the use of the Build Session ID.
With the exception of Unit Tests, we recommend using the Lab ID to connect between the test listener and the test runner
...
.
Starting the Test Stage
First the SeaLights server needs to be notified that a test stage is starting.
...