Skip to main content

Parellise tests with posix jobserver.

Project description

pytest-jobserver

PyPI version Python versions Code coverage Build status

Parellise tests with posix jobserver.

Installation

Install with pip:

pip install pytest-jobserver

The plugin officially supports Python >= 3.6 on a Linux OS. You may find other Python 3 versions/MacOS work as well.

Usage

The plugin uses a POSIX jobserver to manage parallel test loading.

Pass the --jobserver argument with a path, where this path points to a named pipe acting as a Jobserver. You should probably also use pytest-xdist to enable parallelism in the first place:

pytest -n4 --jobserver /opt/jobserver

Implementation

This plugin wraps pytest's call to pytest_runtest_protocol, which is called to actually run a collected item on the worker node.

Changelog

0.1.0

Features

  • can run against a jobserver specified at the cli

TODO

  • run against cli jobserver
  • integrate with Make jobserver from environment variables
  • factor out creation of jobservers to seperate python package

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-jobserver-0.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

pytest_jobserver-0.1.1-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-jobserver-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-jobserver-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pytest-jobserver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68a372815a67b3924059b2788c43b8f34c374d878bbbd60721da2e7680c4e1db
MD5 7719805a06c1f1a034ab144a7d11519e
BLAKE2b-256 d5cdc386e08c5b5c01113585a0e2f3c6d54c2f808c6282f67bb6ba09983f1908

See more details on using hashes here.

File details

Details for the file pytest_jobserver-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_jobserver-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pytest_jobserver-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f3dda3a4974fc9f9afe5d6542270241fd8a79db0fd05ecca528c0b42c84d6f26
MD5 1a0d7523cde555785d9ebf0310e7606a
BLAKE2b-256 9860ed882e4c3bf92446bf451aae1204ec70b3968a787fd0c0db5cf4ac290456

See more details on using hashes here.

Supported by

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