Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Practicing BDD with python [closed]

Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great.

like image 567
JtR Avatar asked Oct 23 '08 20:10

JtR


People also ask

Can we use BDD with Python?

With Python Behave, a BDD (Behavior Driven Development) framework, written in plain language, you can help stakeholders to easily understand the logic in the test scripts.

Does cucumber framework support Python?

Cucumber supports 14 languages right now, including Python on the JVM also called Jython.

Is robot framework BDD or TDD?

Robot Framework is a keyword-driven, open-source automation tool created by Nokia, and used by thousands of developers and test automation engineers. Primarily, it was designed for acceptance-test driven development (ATDD), but it fits well for Behavior Driven Developoment and Specification by Example, too.

What language is used for BDD?

Gherkin is the domain-specific language for writing behavior scenarios. It is a simple programming language, and its “code” is written into feature files (text files with a “. feature” extension). The official Gherkin language standard is maintained by Cucumber, one of the most prevalent BDD automation frameworks.


2 Answers

Lettuce means to be a cucumber-like tool for python: http://lettuce.it/

You can grab the source at github.com/gabrielfalcao/lettuce

like image 157
user333958 Avatar answered Sep 28 '22 03:09

user333958


I really recommend behave.

Looking for a Cucumber clone for Python, I started using lettuce, but found it a pretty clumsily designed replica. Very Unpythonic.

Then I discovered behave, and have been really happy with it.

like image 25
Gregarious Avatar answered Sep 28 '22 05:09

Gregarious