Skip to main content

pytest plugin that posts run summaries to QualityPilot (qlens.dev) CI ingest.

Project description

qlens-pytest-reporter

pytest plugin that posts run summaries to QualityPilot CI ingest.

Install

pip install qlens-pytest-reporter

The plugin auto-registers via the pytest11 entry point — no conftest.py changes.

Configure (env-only, CI-friendly)

Create an API key at qlens.dev/dashboard/keys, then set:

export QLENS_API_KEY=qlens_...
export GITHUB_REPOSITORY=owner/name   # auto-set in GitHub Actions
# optional
export QLENS_SEND_CASES=1             # include per-case data
export QLENS_MAX_CASES=5000
export QLENS_REPO=owner/name          # override if not on GitHub Actions
export QLENS_ENDPOINT=https://www.qlens.dev/api/v1/test-runs

Run pytest as usual — the plugin posts once at session end.

Flakiness

Tests that pass after reruns (via pytest-rerunfailures) are counted as flaky, not passed. The attempts field on each case captures the retry count.

Fail-safe

Never fails the test run. Missing API key, network errors, 4xx/5xx from the ingest — all logged ([qlens]) and ignored. Your CI green stays green.

Docs

Full API schema: qlens.dev/docs/ci-ingest.

License

MIT — built by IK Lab.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qlens_pytest_reporter-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qlens_pytest_reporter-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file qlens_pytest_reporter-0.1.0.tar.gz.

File metadata

  • Download URL: qlens_pytest_reporter-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for qlens_pytest_reporter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6d820e9a2d15d705a9dc697f5eacad2b891007e98a996603f858a1498679cbb
MD5 4bb2728536251d291b553872bdbe4c6c
BLAKE2b-256 c367cdf5c2077cd28410e074495ef055eb119a09d1a7ca044a5427c74e8addeb

See more details on using hashes here.

File details

Details for the file qlens_pytest_reporter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qlens_pytest_reporter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9cb857e81e4e183c7f06d9cbe3c837dc6d8ceebf7e1b56e84d4958f5e78a0b7
MD5 564e88e0c18cca14e4a7f06e7e3157eb
BLAKE2b-256 1432dc0797bb048d0b0cca1e58b2d1aff5a4b090d5358774722bda01bd64d16c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page