Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any story based BDD test framework in python? [closed]

I mean, we have rSpec, cucumber in the ruby world. But do we have similar tools in python? How about robot framework? Can we use it as a story based BDD test tool?

I'm asking because I'm kind of buying the BDD, story based test stuffs.

like image 847
Daniel Chen Avatar asked May 17 '11 06:05

Daniel Chen


People also ask

What is Python BDD framework?

Java Prime PackBehave is a tool used for Behaviour driven development (BDD) in Python programming language. In an Agile development framework, BDD creates a culture where testers, developers, business analysts, and other stakeholders of the project can contribute towards the software development.

What is Pytest BDD in Python?

pytest-bdd is a behavior-driven (BDD) test framework that is very similar to behave, Cucumber and SpecFlow. BDD frameworks are very different from more traditional frameworks like unittest and pytest. Test scenarios are written in Gherkin “. feature” files using plain language.

Is robot framework BDD or TDD?

Robot Framework is a Python-based, extensible keyword-driven automation framework for acceptance testing, acceptance test driven development (ATDD), behavior driven development (BDD) and robotic process automation (RPA).


3 Answers

Lettuce is another Python port of Cucumber. It works well and the documentation describes, among the usual usages, Django usage as well.

http://lettuce.it/index.html

And here's another blog post that describes BDD with Lettuce and Splinter:

http://cilliano.com/blog/2011/02/07/django-bdd-with-lettuce-and-splinter/

like image 178
Lockjaw Avatar answered Oct 13 '22 18:10

Lockjaw


Python freshen is a python port of cucumber, implemented as nose plugin.

like image 42
ashwoods Avatar answered Oct 13 '22 18:10

ashwoods


You might also want to take a look at Behave. It's built from the ground up to do BDD style testing as opposed to either an "add-on" to nose or a port from another framework.

like image 20
Jay Atkinson Avatar answered Oct 13 '22 19:10

Jay Atkinson