Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gathering coverage and test information using the SeaLights Java Test 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 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.

...

Expand
titleUsing Build Session ID
Code Block
languagebash
java -jar sl-test-listener.jar uploadReports -tokenfile /path/to/sltoken.txt -buildsessionidfile buildSessionId.txt -reportFile "/path/to/junit_report.xml"  -source "Junit xml report"
Note

This command must be executed while your Test Stage is still open (a.k.a. before the end command), otherwise the report information won’t be visible and associated with it in your dashboard.

Info

...

info

Ending the Test Stage

The server needs to be notified that a test stage has ended.

...