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 unittest.py).

  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.

Source Distribution

Behaviour-0.1a2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Behaviour-0.1a2-py2.5.egg (30.9 kB view details)

Uploaded Egg

File details

Details for the file Behaviour-0.1a2.tar.gz.

File metadata

  • Download URL: Behaviour-0.1a2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Behaviour-0.1a2.tar.gz
Algorithm Hash digest
SHA256 5e1b66c28914714b9f04d24abd4e0c6cba78711dc36b1f617039097cfd816610
MD5 f8b0c238222cf082858cd59fb24117ad
BLAKE2b-256 c43119716abd12e40192092160db5c0fb66e6642fffc79aa947d88c0861e881c

See more details on using hashes here.

File details

Details for the file Behaviour-0.1a2-py2.5.egg.

File metadata

  • Download URL: Behaviour-0.1a2-py2.5.egg
  • Upload date:
  • Size: 30.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Behaviour-0.1a2-py2.5.egg
Algorithm Hash digest
SHA256 85fb5bfeb2cfdebb0611c7da473854cbc7521938975b1f1bb3fc83296eb5153f
MD5 4e125157c6b961264e7470dcf7bc3595
BLAKE2b-256 09799cfb1d3e44afca4a33eac5c12c8828d69e5fd8e9f36cadfd0bde227ce083

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page