Instrumenting pytest tests with Helios

Use the installation instructions below if you're using pytest as your testing framework and would like to add your existing tests to Helios for complete E2E troubleshooting.

Navigate to your project's root directory, and install the latest Helios OpenTelemetry SDK:

pip install helios-opentelemetry-sdk

Once the package is installed, a matching plugin should be registered for pytest. To make sure, run this command and verify the hstest module shows up:

pytest --trace-config

Provide the following arguments when running your tests:

pytest <tests_path> --hs_access_token=<token> --hs_enabled=true


All set

Now when you run your tests - the results will show up in the Helios application and the URL of the exact test trace will be handily printed after each test run.