Skip to content

Integrates pytest asserts with behave (forked from: ribozz/behave-pytest)

License

Notifications You must be signed in to change notification settings

behave-contrib/behave-pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Integrates pytest asserts with behave (forked from: ribozz/behave-pytest)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages