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.
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.
Cucumber supports 14 languages right now, including Python on the JVM also called Jython.
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.
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.
Lettuce means to be a cucumber-like tool for python: http://lettuce.it/
You can grab the source at github.com/gabrielfalcao/lettuce
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With