Skip to main content

Behaviour Driven Development in Python

Project description

Behaviour provides a language suitable for Behaviour Driven Development (BDD), as opposed to post-coding unit testing. It operates as a facade over Python’s unit testing framework.

What is Behaviour Driven Development?

BDD is a derivative of Test Driven Development (TDD), evolving out of the observed adoption-life-cycle for TDD:

  1. A developer starts using a unit testing framework (like
  2. The developer becomes more confident in the quality of his work.
  3. They realize that writing the tests first lets them concentrate on writing the code they needs.
  4. The developer notices that the tests document the code.
  5. Writing tests first helps the developer to design the API for their code.
  6. The developer realizes that TDD is about defining behaviour rather than testing.
  7. The developer adopts mocking as a fundamental approach to support component interactions.

BDD supports the progression through that life-cycle, particularly the last three steps.

BDD supports this transition is by providing an appropriate language. Frameworks for BDD talk about either specifications (e.g., RSpec for Ruby, NSpec for C#.NET) or behaviours (e.g., JBehave for Java, NBehave for .NET).

For more information on BDD, see:

Project details

Download files

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

Files for Behaviour, version 0.1a2
Filename, size File type Python version Upload date Hashes
Filename, size Behaviour-0.1a2-py2.5.egg (30.9 kB) File type Egg Python version 2.5 Upload date Hashes View hashes
Filename, size Behaviour-0.1a2.tar.gz (16.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page