
About behave
behave is a behaviour driven development tool for Python. It runs tests written in natural language feature files, backed by Python step code.
What it does
You write feature files in Gherkin, then implement each step in Python. behave supports tags to select which tests run, and fixtures for setup and cleanup. Integration helpers exist for Django and Flask, and the documentation covers a tutorial, the API reference and tips for practical testing.
Key features
- Gherkin feature files
- Python step implementations
- Tag expressions to select tests
- Fixtures and user data for test setup
Who it's for
Python teams that want business readable specifications and a test runner built around the BDD style.
Pricing and good to know
The project source is on GitHub, where it has about 3.5k stars. It suits teams that want to keep scenarios and step code together in one project. The documentation includes installation options from pip and from the source repository, along with optional dependencies for extra features. The API reference covers step functions, environment file functions and fixtures.
Highlights
- Write feature files in Gherkin
- Implement steps in Python
- Use tags to select tests
- Fixtures for setup and cleanup












