pytest-history
enables the tracking of test statuses and other metadata across multiple test runs, providing
additional insights into test behavior.
To enable test history reporting to Supabase, you'll need to provide authentication credentials using any of these methods:
export [email protected]
export PYTEST_HISTORY_PASSWORD=your-password
pytest --history-email [email protected] --history-password your-password tests/
# pytest.ini
[pytest]
history-email = [email protected]
# pyproject.toml
[tool.pytest.ini_options]
history-email = "[email protected]"
Note: For security reasons, the password can only be provided via environment variable or command-line parameter.
When multiple configuration methods are used simultaneously, command-line parameters take precedence over environment variables, which take precedence over INI file settings.
Based on pytest-history by Nicola Coretti.