December 2003 - Posts

JsUnit rocks! (A unit testing framework for clientside Javascript)
Tuesday, December 30, 2003 1:40 AM

Today I discovered a wonderful tool while adding some features to the Remote Scripting Client (msrsclient.js).  It is a Javascript unit testing framework called JsUnit which is developed by Edward Hieatt.  It allows for you to build your features in the usual Test Driven manner even though your code is clientside Javascript! 

What about automated test runs, a graphical test harness and exception handling, you may ask ... it has it all!  You can even define test suites to automatically test whole groups of test html pages.

JsUnit Screenshot

I will post the development project with the JsUnit tests when releasing the next version of msrsclient.js.

Edward - Many thanks for your outstanding work on JsUnit!

TDD with NUnit and C# in Vienna, VA
Sunday, December 14, 2003 10:21 PM

I just returned from a long vacation weekend in the DC area.  Just before leaving, I managed to get a last minute presentation slot at the Vienna .NET User Group - many thanks to Chris Hynes and Gary Pupurs for making it happen and the whole group for their hospitality!

There was the most interest in my TDD topic which meant giving the same presentation within 2 days of giving it in Pittsburgh.  I was eager to try my “pair with the audience” strategy again.  This time the audience was smaller due to the last minute arrangements and the holiday season.  The group started off slowly but started jumping in and helping before long.  They questioned the techniques and had some tough questions which had me thinking.  All in all, it was a great night and hopefully a few new TDD converts.

If you are interested in this presentation for your User Group or Conference, please contact me.

You can also view the slides and code from the presentation (including my upcoming gigs).

Test Driven Development with NUnit and C# (with 50 people!)
Wednesday, December 10, 2003 6:13 AM

Last night I presented on the above topic at the Pittsburgh .NET User Group.  I had been having trouble in my preparation trying to figure out the best way to not only explain the concepts but to win over the audience to the TDD process.  Looking at the two wonderful books (BeckAstels) available on TDD made me realise something - they both explain by example!  The more I thought about it, I realised that this was the XP/TDD way - “pair with the new guy“.

But how do you pair with 50 people?  We did!  In about 40 mins (during a 2 hour session), we created the projects from scratch in VS.NET and worked on a fictitious TODO list adding features TDD-style.  People got involved - yelled out questions, helped find compile areas, questioned the small steps :-), questioned  the “fake it“ implementations and so on.

Did it work?  I had several people come up to me afterwards saying they had dabbled with TDD before but had never really got it but the practical exercise had shown them the light.  Quite a few people even mentioned that they would like to continue working on the TODO list again to see how it evolves.

My slides and code samples will be available online soon!

What are your experiences in converting people to TDD?

More Posts

This Blog

Syndication