How to install behave
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install behave
Lastest release
behave is behavior-driven development, Python style.
Behavior-driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project.
behave uses tests written in a natural language style, backed up by Python code.
First, install *behave*.
Now make a directory called "features/". In that directory create a file called "example.feature" containing:
Make a new directory called "features/steps/". In that directory create a file called "example_steps.py" containing:
Run behave:
Now, continue reading to learn how to the most of behave. To get started, we recommend the tutorial and then the feature testing language and api references.
More Information
- behave documentation (latest changes)
- behave.example: Behave Examples and Tutorials (docs, executable examples).
Testing Domains
Behave and other BDD frameworks allow you to provide step libraries to reuse step definitions in similar projects that address the same problem domain.
Support of the following testing domains is currently known:
Testing Domain | Name | Description |
---|---|---|
Command-line | behave4cmd | Test command-line tools, like behave, etc. (coming soon). |
Web Apps | django-behave | Test Django Web apps with behave. |
Web, SMS, ... | behaving | Test Web Apps, Email, SMS, Personas (step library). |