pyunitbddInstall nosetests and plugins to ease bdd unit specs | |
Download |
pyunitbdd Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Hugo Lopes Tavaes
- Publisher web site:
- http://github.com/hugobr/
pyunitbdd Tags
pyunitbdd Description
Install nosetests and plugins to ease bdd unit specs Use nosetests and plugins to take BDD specifications easier.Installation:easy_install pyunitbdd orpip install pyunitbddUsage:Get a python file with BDD-like test names (starting with it, ensure, should, must) and add them to the test suiteFor example:cat example.pyimport unittestclass PyUnitWrapExample(unittest.TestCase): def it_should_pass(self): pass def ensure_it_pass(self): pass def should_pass(self): pass def must_pass(self): pass def test_pass(self): passpyunitbdd example.py # it colorizesPy unit wrap example- ensure it pass- it should pass- must pass- should pass- pass----------------------------------------------------------------------Ran 5 tests in 0.002sOK Requirements: · Python
pyunitbdd Related Software