Here is an overview of the steps you should follow
Build out the wiki with the acceptance criteria tests
Create the fixture
if the fixture links to the wiki you are good to go
Perform a draft design of the components required
For each component develop its code following a TDD life cycle, you would use a unit testing framework here
Integrate your components so that the tests on the wiki incrementally pass
Here is an wiki script for the Find Highest Number problem
!contents -R2 -g -p -f -h
!define TEST_SYSTEM {slim}
!path C:\work\find-highest-number\target\find-highest-number-1.0-SNAPSHOT.jar
|import |
|com.celestial.findhighestnumber|
|Find Highest Number Fixture|
|Numbers |Expected Value? |
|4,5,90,7 |90 |
|Find Highest Number Fixture |
|Numbers List|Expected Value?|
|[4,5,90,7] |90 |
Further challenge
Rather than just returning the highest number also sort the the array of integers
Here is the wiki script
!contents -R2 -g -p -f -h
!define TEST_SYSTEM {slim}
!path C:\work\software\netbeans\tdd-find-highest-number\target\tdd-find-highest-number-1.0.jar
|import |
|com.celestial.tdd.fitnesse.demo|
|Find Highest Number Fixture|
|Numbers |Expected Value? |
|4,5,90,7 |90 |
|Find Highest Number Fixture |
|Numbers List|Expected Value?|
|4,5,90,7 |90 |
|Find Highest Number And Sort Array Fixture|
|Numbers List |Sorted List? |
|4,5,90,7 |4,5,7,90 |
Add Comment