testing/nose: Restructure to split out examples
[swc-testing-nose.git] / testing / nose / exercises / fibonacci / README.md
1 Test-driven development (TDD) of the Fibonacci series.  In the first
2 part of each phase (1: one, 2: zero, 3: natural, 4: other), we extend
3 the tests to be more robust.  Then we improve the implementation until
4 the tests pass.  Repeat as needed ;).
5
6     $ cd 1.1.one                   # add some tests
7     $ nosetests test_fibonacci.py  # fails
8     $ cd ../1.2.one                # add an implemenation
9     $ nosetests test_fibonacci.py  # passes
10     $ cd ../2.1.zero               # add better testing
11     $ nosetests test_fibonacci.py  # fails
12     …