• October 2011
    M T W T F S S
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
    31  
  • Latest Posts

  • Latest Comments

  • Archives

Unit Testing Your JavaScript

This falls into the category of something I want to remember… so I’m putting it here… Unit Test 101: Are You Testing Your JavaScript?

As Microsoft seems to have been blocked on their XAML everywhere strategy as a cross-platform strategy they seem to be looking now to HTML5 and JavaScript. I was enthusiastic about the use of Silverlight and Windows Presentation Foundation (WPF) as two presentation tiers that could relatively easily share a common logic/data tier. But when Apple banned both Flash and Silverlight from the devices that created some issues. I was hoping that consumers would complain loudly about not having it and that Apple would listen to their customers. Not the case.

So now what… I see continued references to HTML5 and JavaScript as the way to achieve the cross-platform support. But I’ve grown very accustomed to high quality software made possible by a strong unit testing strategy (ideally test driven development or TDD). So this post is a pointer to an excellent article that is at least a start for doing that in a JavaScript world.

I hope Microsoft really pushes the envelope on their testability of JavaScript in their next release of Visual Studio.

Thanks Christian Johansen!

2 Comments  »

RSS feed for comments on this post, TrackBack URI

Leave a Comment