Skip to main content

Create living documentation from BDD specs

Project description

Using a Python BDD test runner like behave, create living documentation from your BDD feature files. This library will create documents that contain up-to-date information about your BDD specs.

Current supported document types:

  • *.mmark files (to be used by Hugo)


pip install livingdocs

Quick Start

Using a test runner like behave, you can generate documents for each feature, scenario and step. In, you can use the DocsMaker to capture this information:

from livingdocs.maker import DocsMaker

def before_all(context): = DocsMaker('feature')

def before_scenario(context, scenario):, scenario)

def after_scenario(context, scenario):, scenario)

def before_feature(context, feature):, feature)

def after_feature(context, feature):, feature)

def before_step(context, step):, step)

def after_step(context, step):
    if context.browser is an instance
    of Selenium Webdriver, then it will
    take a snapshot of this step.
    """, step)


First create a virtual env, then to run the tests use:

tox -e py27


  • BSD license


0.1.0 (2016-08-21)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livingdocs-0.1.0.tar.gz (14.0 kB view hashes)

Uploaded source

Built Distribution

livingdocs-0.1.0-py2.py3-none-any.whl (8.4 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page