Skip to main content

bb_pytest

bb_pytest is a library that adds a Buildbot buildstep that can parse py.test output and generate correct status text at completion of tests.

Arguments

This test step used ShellMixin. So besides the arguments listed below the following steps will also be accpeted and will behave as per the ShellCommand step: workdir, haltOnFailure, flunkOnWarnings, flunkOnFailure, warnOnWarnings, warnOnFailure, want_stdout, want_stderr, timeout

testpath

The PYTHONPATH to use when running the tests.

python

The python executable to use.

pytest

The pytest executable to use.

pytestMode

The mode that should used to track the progress of the step. Valid options are “pytest” or “xdist”.

pytestArgs

The pytest arguments to be passed on command line

verbose

The pytest ‘-v’ argument, also used to properly process output from pytest. (‘-v’ shall not be used in pytestArgs)

Example

from bb_pytest import step
from buildbot.process import factory

f = factory.BuildFactory()

f.Factory.addStep(
    Pytest(
        pytest="pytest",
        pytestArgs=['-u', '-i'],
        testpath=None,
        tests=[""],
        flunkOnFailure=True))

Changelog

Release 0.3 24/08/2020

  • updated to buildbot 0.9.X.

Release 0.2 10/04/2013

  • Fixed testcounting.

  • Updated the error states to match the trial step.

  • Added support for counting errors.

Release 0.1 23/03/2013

  • Initial release.

Release files for bb-pytest 0.3

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

Source distribution (sdist)

Source distribution for bb-pytest 0.3
File Size Uploaded
bb-pytest-0.3.tar.gz 9.6 kB Details

Release files / bb-pytest-0.3.tar.gz

Download URL bb-pytest-0.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c78e08b44f320a63efd1a30081843fc30c500ef2190bc73acb009d889149d5d0
BLAKE2b-256 checksum
How to use checksums
3a779c09cb95f39272dc18ea124f4a712ec4efc5b4bf91379429fd9a3e035d32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

1 release file

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