Test Driven Development

From Foss2Serve
Revision as of 19:22, 16 February 2016 by Nyeates (Talk | contribs)
Jump to: navigation, search

Contents

Examples of TDD in OSS

  • https://github.com/unclebob/fitnesse
    • Written by one of the Agile Manifesto co-authors
    • Very clean code, tests in /test directory
    • Not as well known, but might be easier for students to understand


TDD "Lessons"

  • http://www.codeaffine.com/2014/08/12/junit-in-a-nutshell-hello-world/
    • A superbly written step-by-step walk through of creating a test and then creating the associated functional code
    • It uses JUnit, which is an open source technology - but it uses a helloworld example - not sure if we want this or more of an integration with an existing oss project

Ideas and research

TDD

  • Idea 1: Find a project that already has a testing harness and associated tests; learn it, and add a new unit test
  • Idea 2: Create a test harness to make, build, and run unit tests on an existing open source project
    • Jim Bowring has done this in the past, though it seems they are lengthy projects vs a shorter activity; Do we want to create a “project”-oriented LA?
  • Teach the “mental discipline” of testing
  • How can we test a Requirement?
    • Ensuring testing starts at user requirement gathering
    • Iterating through tests once code has been written, helps to improve the tests

Background reading

Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox