Table of Contents |
---|
Gathering coverage and test information using the SeaLights Python agent without a supported framework is done in a few steps:
...
First the SeaLights server needs to be notified that a test stage is starting.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sl-python start --teststage "Unit Tests" |
Running your tests
...
Functional Tests
Before running your functional tests you need to set up the backend server to receive the test footprints. See 'Using Python Agents - Running backend server using SeaLights agent'
Once set up you now run your tests normally while generating one or more JUnit xml result files to be reported to the SeaLights server.
...
Unit Tests
As the unit tests are not run against a backend server, you need to run the actual tests using the Sealights Node.js Agent while generating one or more JUnit xml result files to be reported to the SeaLights server.
...
Once done running the tests you upload the report files to the SeaLights server
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sl-python uploadreports --reportfile "/path/to/junit_report.xml" |
...
Notify the SeaLights server that the test stage has ended.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sl-python end |