Skip to main content

A pytest wrapper using for pytest-relay with pytest-relay-ws to control pytest executions.

Project description

Job messages

All published messages follow this model:

{
  "type": "job",
  "payload": {
    "id": "<job-id>",
    "state": "<job-state>",
    "returncode": "<int|null>",
    "text": "<process-output-as-str|null>"
  }
}

Each job transitions through a series of well-defined states, represented by the (JobState)[pytest_relay_run/src/pytest_relay_run/api/model.py]:

Value Meaning
"created" The job was instantiated but has not yet started running pytest.
"collected" Test collection was performed (using --collect-only), and no execution ran.
"in-progress" The job’s pytest process is currently executing tests.
"terminating" A termination signal (SIGINT) was sent, graceful shutdown is in progress.
"done" The pytest process has completed (successfully or with errors).

The following transitions trigger a JobState message:

  • created upon job creation (if not collect_only).
  • collected as result for jobs with --collect-only.
  • in-progress when a job subprocess starts executing.
  • done after a job subprocess completes and output is captured.
  • terminating when stop() is called and SIGINT is sent.

The states collected and done are final states, i.e., the job is complete.

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

pytest_relay_run-0.0.1.tar.gz (68.0 kB view details)

Uploaded Source

Built Distribution

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

pytest_relay_run-0.0.1-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file pytest_relay_run-0.0.1.tar.gz.

File metadata

  • Download URL: pytest_relay_run-0.0.1.tar.gz
  • Upload date:
  • Size: 68.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for pytest_relay_run-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8425312aae3064703144453ef2dc668d0cb42b86ef6a3a68bb51d335563d982
MD5 459c50071edc76d42a98e4d4172e5717
BLAKE2b-256 84e410036ef1153c376cb024d08ad4d4ff1957a05f7b721a73eadc7e6a96a22f

See more details on using hashes here.

File details

Details for the file pytest_relay_run-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_relay_run-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51e5409144fe0531649396900aabeb4d020ec26b93e62aa8926c2da6316f0997
MD5 92e7c4d91563c57b3b1da12076ac5009
BLAKE2b-256 ff1f3df8541797daaf1c9e709da4fdc00917ac29e852314a98a7be63330ff2fe

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