Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

In order to capture code coverage on your backend server, you need to run it using our Python test listener agent. Below you’ll find several options depending on your server type.

Table of Contents
Note

The below commands assume the token and session id are located in the working directory. If not, you can provide the file locations using the sl.tokenFile and sl.buildSessionIdFile environment variables

...

Code Block
...
def post_fork(server, worker):
    import python_agent.init
...

Other servers (Generic solution)

For other servers, run with the SeaLights Python agent and the run flags

...