An Original Idea

because all great software begins with an original idea

Silverlight 2 has built in Unit Testing

Posted by anoriginalidea on April 3, 2008

image

As announced by Scott Guthrie in Mix08, and now on his blog, Silverlight 2 incorporates visual unit testing.  

One of the motivations for an MVC/MVP architecture for me is better unit testing of ui logic.  Sometimes it is very difficult to created automated visual tests for some platforms, such as Winforms. 

It appears (from the demo) that Silverlight allows pretty good testing of the actual user interface.    Probably more effective than testing ui logic with mock views.

Food for thought.  Perhaps this should affect the way we think about testing frameworks.

If you’re interested, take a look at this good (and short) video demo which gives you an overview of the whole thing:

Video walkthrough of the Silverlight 2 control unit tests – Jeff Wilcox

 

Links

Open Source automation frameworks for Winforms and other Win32 Apps

 


Share this post :

One Response to “Silverlight 2 has built in Unit Testing”

  1. Chui Tey said

    The great promise of Silverlight is it makes it possible to perform Functional Programming on the GUI. i.e. no side effects. Although imperative style scripting is still possible, limiting side-effects should will mean good riddance to a whole class of UI bugs.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>