Pytest plugin for PyBuilder: https://github.com/pybuilder/pybuilder
Python
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src __version__: import module Nov 8, 2017
.travis.yml
CHANGELOG.md __version__ + pylint Nov 8, 2017
README.md README: properties table Oct 26, 2017
build.py __version__ + pylint Nov 8, 2017
setup.py Inital commit Dec 15, 2016

README.md

PyBuilder Pytest Plugin Build Status

Use pytest Python module for running unittests

How to use pybuilder_pytest

Add plugin dependency to your build.py

use_plugin('pypi:pybuilder_pytest')

@init
def init(project):
    project.get_property("pytest_extra_args").append("-x")

This will break the build if any unittest failed.

Coverage measure

For coverage measure is recommended to use pybuilder_pytest_coverage

Properties

Plugin has next properties with provided defaults

Name Type Default Value Description
dir_source_pytest_python string src/unittest/python Relative path to directory with unittest modules
pytest_extra_args list [] Extra arguments which will be passed to pytest