Skip to content

pwyf/bdd-tester

Repository files navigation

BDD Tester

PyPI Package latest release License Travis-CI Build Status Test coverage

Test data files using behaviour-driven development tests, in python.

Wait, what?

It’s a tool to run Gherkin tests (features) against (IATI) data – similar to Cucumber (in Ruby) or Behave (in Python). Here’s a blog that nicely explains the idea.

Install

pip install bdd_tester

Run

bdd_tester --feature [Feature file] --steps [Step file] [Data file]

For more options, run:

bdd_tester --help

Using it programmatically

from bdd_tester import BDDTester


tester = BDDTester(step_definitions_filepath)
feature = tester.load_feature(feature_filepath)
result = feature.tests[0](*args, **kwargs)

Packages

No packages published

Languages