Django Test Runner for the Behave BDD module
Project description
django-behave
A Django TestRunner for the Behave BDD module
GOALS
To provide a Cucumber-compatible BDD toolset for Django;
To work well with existing Django testing behaviour e.g. use a test database
To use Cucumber/Gherkin syntax.
To provide a library of django-useful steps.
HOW TO USE
add ‘django_behave’ to INSTALLED_APPS
set TEST_RUNNER to ‘django_behave.runner.DjangoBehaveTestSuiteRunner’
add features directories to apps
copy django_behave/features/steps/library.py, if wanted.
EXAMPLE
Assuming you have a app called proj.apps.myapp
Edit INSTALLED_APPS, as above. Edit TEST_RUNNER, as above.
Create proj/apps/myapp/fixtures and proj/apps/myapp/fixtures/steps.
Copy example/tutorial.feature to the fixtures dir. Copy example/tutorial.py to the fixtures/steps dir.
$ python manage.py test myapp
should then show you django-behave in action, finding the tutorial feature and running the tests.
REQUIREMENTS
The main one is the ‘behave’ module, of course, which provides the BDD toolset for Python.
Also used are: - django >= 1.4 (needed for the LiveServerTestCase) - selenium
See requirements.txt for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-behave-0.0.9.macosx-10.3-fat.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2d801315df1908142a8a81142a71fc4b5c83df1c4d841c01d8eb0541daef00 |
|
MD5 | 16826d57d1cc369fed56615f37be13a0 |
|
BLAKE2b-256 | b435fe125b187bcd3fb9f5f0847b88acaa0ccc687339efa82919fd8a70b38a7a |