Test Driven Development - Tools and Techniques

by Call me dave... 18. December 2008 09:26

Earlier tonight Chris and I presented our talk on Test Driven Development.  I have to say I was rather impressed at the turn out since its only a week away from Christmas and we still managed around 40 people.  As promised here are the slides from the presentation and all of the code/files that were used during the talk. 

Test_Infected_Presentation.ppt (544.50 kb) 

SkillsMatter.TestInfected.rar (6.15 mb) 

Running Fitnesse

  1. Uncompress the SkillsMatter.TestInfected.rar file into C:\SkillsMatter\TDDTalk
  2. Run C:\SkillsMatter\TDDTalk\TDD\fitnesse\run.bat - This will start the Fitnesse web server on port 8080
  3. load http://localhost:8080/MidlandsFoodsFirstCut
  4. Press the Suite link and the tests should execute and all fail - This demonstrates the deliverable from a Business Analyst
  5. Load http://localhost:8080/MidlandsFoods 
  6. Press the Suite link and the tests should execute and most will pass
Debugging Fitnesse
  1. Uncompress the SkillsMatter.TestInfected.rar file into C:\SkillsMatter\TDDTalk
  2. Run C:\SkillsMatter\TDDTalk\TDD\fitnesse\run.bat - This will start the Fitnesse web server on port 8080
  3. Load C:\SkillsMatter\TDDTalk\TDD\JackPlaysSnap\JackPlaysSnap.sln
  4. Set the Fitnesse project as the StartUp Project
  5. Under project propertie
    1. Set Start external program to C:\SkillsMatter\TDDTalk\TDD\fitnesse\dotnet\TestRunner.exe
    2. Set the Commandline arguements to localhost 8080 MidlandsFoods.GiantWinsJackNeverSnaps
    3. Set the Working directory to C:\SkillsMatter\TDDTalk\TDD\fitnesse\
  6. Set a breakpoint in JackPlaysSnapFitness.cs
  7. Run the project under debug mode

Tags:

Comments are closed