Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 920 Bytes

README.rst

File metadata and controls

35 lines (21 loc) · 920 Bytes

behave-pytest (reborn)

FORKED-FROM:https://github.com/ribozz/behave-pytest.git
State:Currently broken, works no longer w/ current pytest version.

Small utility package to integrate pytest asserts into behave project.

Installation:

# XXX-WORKMARK-TODO:
$ pip install behave-pytest

Add before_all hook into your project. like this (features/environment.py):

# -- FILE: features/environment.py
from behave_pytest.hook import install_pytest_asserts

def before_all(context):
    install_pytest_asserts()

That's it. When running test you will see standard pytest assertion details:

Example: Behave test-run with behave-pytest support.