Skip to content

Quickstart: pytest

1. Enable the Allure reporter

bash
pip install allure-pytest

2. Run tests with results output

bash
pytest --alluredir=allure-results

3. Upload to Sulu

bash
export SULU_URL=https://your-sulu.example.com
export SULU_TOKEN=<token from Profile → API keys>
export SULU_PROJECT_ID=<your project id>

suluctl upload --results ./allure-results

Or stream live while the tests run:

bash
suluctl watch --results ./allure-results -- pytest --alluredir=allure-results

Open the printed launch link — steps, parameters, and screenshots attached via allure.attach(...) are all there. See suluctl for flags.

Sulu Test Management System