Skip to content

ciarancourtney/bb-pytest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 buildbot.plugins import steps, util

factory = util.BuildFactory()

factory.addStep(
    steps.Pytest(
        pytest="venv/bin/pytest",
        pytestArgs=[],
        testpath=None,
        tests=[],
        flunkOnFailure=True
    )
)

About

py.test runner bulid step for buildbot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%