This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Buildbot step for py.test.

Project Description

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 is derived from the ShellCommand step. 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”.

Example

from bb_pytest import step
from buildbot.process import factory

f = factory.BuildFactory()

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

Changelog

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 History

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bb-pytest-0.2.tar.gz (9.7 kB) Copy SHA256 Checksum SHA256 Source Apr 10, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting