Versions Compared

Key

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

...

Code Block
languagebash
sl-python start --teststage "Unit Tests"

Running your tests

Test Duration Requirements for Coverage Calculation
Please note that tests must run for a minimum of 1 second for SeaLights to calculate coverage. If your test duration is under 1s, adding a brief pause to your test will allow SeaLights to complete the coverage sampling process.

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.

...