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:
Open Source automation frameworks for Winforms and other Win32 Apps
- Project White – Supports WPF and Swing – http://blog.benhall.me.uk/2008/02/project-white-automated-ui-testing.html
- NUnit Forms – http://weblogs.sqlteam.com/mladenp/archive/2008/01/03/Automated-GUI-testing—Is-it-worth-it.aspx
|Share this post :|