Click on the above badge, or go to https://mybinder.org/v2/gh/hainesr/tdd-fibonacci-example/master.
Click on walkthrough-notebook.ipynb
once the environment has loaded.
Please see the Jupyter documentation for more information.
There is a Docker image you can use so that you don't need to install Jupyter on your own machine. Simply install Docker and run:
docker run -d -p 8888:8888 --name tdd hainesr/tdd-fibonacci-example
This will download the image, if required, and then start the Jupyter notebook
server on port 8888
. Open your Web browser at http://localhost:8888 and then
click on the walkthrough-notebook.ipynb
link to get started.
When you have finished, shut down the image with:
docker stop tdd
docker rm tdd
Alternatively you can load up walkthrough-notebook.ipynb
into your favourite
IPython/Jupyter server.
Please see the Jupyter documentation for more information.
See walkthrough-slides.pdf or walkthough-script.md in this directory for the individual steps.
In this repository each step is tagged so you can move through the example by checking each step out as you get to it. For example:
git checkout step-1
Tags are named step-n
, where 1 <= n <= 8
.
-
Add the 'src' directory to the python library search path:
export PYTHONPATH=`pwd`/src
-
Run the tests:
python test/test_fibonacci.py
-
Open up the project properties and add the 'src' directory to its
PYTHONPATH
. How you do this will depend on which plugin you are using for python development within Eclipse. -
Right-click on 'test_fibonacci.py' in the 'test' directory and select 'Run As -> Python Unit Test'. Again this may differ depending on which plugin you are using.
BSD. See LICENCE for details.