Giter VIP home page Giter VIP logo

comp61542-fibonacci's Introduction

COMP61542 TDD step-by-step example

Adapted from Test-Driven Development By Example, Kent Beck.

Robert Haines, University of Manchester, 2014, 2015

Working through the steps

See walkthrough-slides.pdf and 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.

Running these examples

From a terminal

  1. Add the 'src' directory to the python library search path:

    export PYTHONPATH=`pwd`/src
  2. Run the tests:

    python test/test_fibonacci.py

Within Eclipse

  1. 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.

  2. 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.

comp61542-fibonacci's People

Contributors

hainesr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.