Skip to main content

pytest-infinity

pytest-infinity is a wrapper for pytest, designed to easily command a test session running infinitely using xdist --dist loadgroup option.

Below is a demonstration for running tests with an "android" and "ios" group:

anim

Infinity was created for complex low-level test suites in mind for hunting down non-deterministic bugs (running high-level or native tests on multiple mobile devices simultaneously).

These are the main principles of infinity:

  • Ease-of-use.
  • Test history.
  • Infinitely-long sessions.

Infinity uses the following pytest plugins for its functionality:

Infinity uses the following plugins for its UI:

  • textual - create UI apps in terminal.
  • rich - rich text for terminals.

PLEASE REPORT BUGS!

Usage

Just run infinity <pytest args> ...

The wrapper adds the following flags implicitly:

$ pytest --color yes -v 
         -n auto --dist loadgroup
         --xstress
         --publish http://localhost:... <impl defined>
         --pubdir <impl defined>
        
         <pytest args> ...

Your pytest args are appended to the end of the cmdline.

Functions

There are a few useful tabs implemented into infinity:

RUN

See a matrix of groups X tests updated live with [pass][fail][skip] text.

run

OUTPUT

Raw stdout output of pytest.

output

LOG

Internal log of infinity, with the output directory printed first.

log

FILES

Navigatable filesystem with test run info.

files

Release files for pytest-infinity 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-infinity 1.0.0
File Size Uploaded
pytest_infinity-1.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-infinity 1.0.0
File Interpreter ABI Platform
pytest_infinity-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / pytest_infinity-1.0.0.tar.gz

Download URL pytest_infinity-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a792d462328b75e9f6d8c9ba1525f9c84e3f37cdae1bb68678b17c02d6807bc1
BLAKE2b-256 checksum
How to use checksums
f12e53d167b6e82f51b0358fe405d7de224bf29a703d19842ca9aebffd286164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/20.6.0

Release files / pytest_infinity-1.0.0-py3-none-any.whl

Download URL pytest_infinity-1.0.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf229a526654957165cf8ac5beb953463d7fe7aeccce208a11e4fa7c62dd4c9f
BLAKE2b-256 checksum
How to use checksums
b99c84ecaec22366556cd123416ad99272b3e19f1c44cf2fcc804bfc20a90c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page