Versions Compared

Key

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

In order to capture code coverage on your backend server, you need to run it using our Python test listener agent

Note

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


uWSGI

When working with uWSGI you need to run uWSGI with the following flags either in the command line or in the uwsgi configuration file: --enable-threads  --single-interpreter --lazy-apps --import python_agent.init

Code Block
firstline1
titleSample Usage
uwsgi ... --enable-threads  --single-interpreter --lazy-apps --import python_agent.init

...