How to set up an application to report coverage to the Sealights dashboard
The following steps specify the necessary actions required to complete a standard onboarding of an application to report to the Sealights dashboard.
Sealights implementation - a Step by Step guide:
Step 1 - Getting Started
- Users that require access are specified by the customer, then created by Sealights.
- New user logs in for the first time using given credentials & sets a new password
- From the Sealights dashboard, create an application token (Settings → Agent Token)
- This token should be saved in a file (default: sltoken.txt), saved in the root workspace directory
Step 2 - Running a Sealights cycle - Build Scan
- Create a session ID - (Java, Node.JS, .NET, Python)
- Requires an application name, branch, build number & package names to be included in the scan.
- This step runs every time a new build is reported to the dashboard
- Scan the binary files (Java, Node.JS, .NET, Python)
- Requires permissions on the server where artifacts are built & unit tests are run
Step 3 - Running a Sealights cycle - Test Listener
- Configure unit tests to run with our test listener (Java - Maven/Gradle, Node.JS, .NET, Python)
- Method of configuration varies in accordance to how tests are run - executed by plugin/manually
- Deploy the packaged application onto the application server
- Configure application server to go up with our Test Listener & ensure the test listener is started alongside the application server. (Java, Node.JS, .NET, Python)
- Start an execution, specify a test stage name. (Java, Node.JS, .NET, Python)
- Run functional/manual tests
- End the execution of the test stage. (Java, Node.JS, .NET, Python)
Related articles