Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best tool to support Behavior Driven Development in Python? [closed]

Tags:

python

bdd

Cucumber seems to be the go-to tool for BDD in Ruby, and through rubypython it could test Python code as well, but it's experimental. There are some Python tools out there like Pyccuracy and Freshen, but they seem to be in an early stage. What is the best tool to use for Python projects?

like image 375
Willem Avatar asked Dec 08 '10 22:12

Willem


2 Answers

Have a look at lettuce. It strives to be the analogue to Cucumber in the Python world. It's quite early in its development, though.

like image 157
Benjamin Wohlwend Avatar answered Oct 28 '22 13:10

Benjamin Wohlwend


Some interesting libraries I have come across for Python testing: factory_boy(https://factoryboy.readthedocs.org/en/latest/), which is like Ruby's FactoryGirl gem. And there is a fairly new testing framework for python called Sure(http://falcao.it/sure/intro.html) which is based on Ruby's RSpec. I started out with Python but now work for a Ruby based company. I've found Ruby's testing libraries to be really fantastic to use, especially RSpec. Sure looks pretty similar to RSpec and could be worth a look.

like image 41
Chris Clouten Avatar answered Oct 28 '22 12:10

Chris Clouten