Public | Automated Build

Last pushed: 2 years ago
Short Description
Graph visualization for behave features, scenarios, and steps
Full Description


Keeping track of all the behave features, scenarios, and steps can be challenging. So this is a behave scraper creating a dependency graph of features, scenarios, and steps.


  • Add in tests!!
  • Add to travis

Installing, Developing, and Running

Installing and Developing

Fork the project and clone it

# Assuming that you have forked the repo
$ git clone<username>/behave-graph.git

Clone ruruki for examples

$ git clone

Get it installed using a python virtualenv

$ virtualenv behave-graph-ve
$ behave-graph-ve/bin/pip install -U pip setuptools wheel
$ behave-graph-ve/bin/pip install behave-graph  # use -e to do a develop install.

Running a scrape and starting a webserver

$ behave-graph-ve/bin/behave-graph --runserver -b ruruki/ruruki/test_behave
INFO:root:Starting server
INFO:ruruki_eye.server:Setting up db to <ruruki.graphs.Graph object at 0x10df1b150>
INFO:werkzeug: * Running on (Press CTRL+C to quit)

Open a web browser and navigate to the running address provided in the output above.

Using a docker container

To use the behave-graph docker container, you will need to mount your root test behave directory which contains all the features and steps to the container directory called my-share. The ruruki-eye server will listen and expose port 80. So you may need to port map.

There are two containers

Example mounting volumes to scrape and mapping port 80 to 8000.

$ docker run -t -p 8000:80 -v /git-repos/ruruki/ruruki/test_behave/:/my-share jenmud/behave-graph

Open a web browser and navigate to the running address provided in the output above.

Once you have run the container (as example above) it will run forever in the background. So you will need to manually stop it once you are done.

$ docker stop jenmud/behave-graph

Example of interesting output (assuming that vertex with name="Graph features" has the id 74)



Docker Pull Command
Source Repository