views:

905

answers:

4

We are starting a big LOB application using Silverlight.

I was wondering if you have any experience with Testing Silverlight apps, what are the best solutions you found and if you encountered any pitfalls.

A: 

Probably not exactly what you're after, but I subscribe to Netflix and they use the following url

http://www.tinyurl.com/netflixsl

...to send subscribers to when they've got a problem. This is of course, at the end of things, and I'm assuming you're after something to test while you're actually developing. But, this might be something you could copy once you're product is released.

Nick DeVore
Yeah, interesting but not what I was asking about. I'm more concerned during the development stage. I don't foresee us needing to have a customer facing test app for our product.
Robert Kozak
+4  A: 

A stalwart individual named Jeff Wilcox has developed a unit test framework targeting Silverlight 2 specifically. It works well.

http://code.msdn.microsoft.com/silverlightut/

I also use Rhino Mocks 3.5 For Silverlight as my mocking framework, developed by Oren Eini. Rhino Mocks is free and excellent. It also offers Silverlight support:

http://ayende.com/projects/rhino-mocks.aspx

I use Prism 2.0, and Unity IoC, which help facilitate the MVVM pattern. This makes testing a breeze. One pitfall that I find, is that Silverlight unit tests run inside a web browser, which hampers continuous integration.

ib.

Ireney Berezniak
Hmm... A solution in a regualr testing framework would be something I would want but I guess that is too much to ask for at this point in time.
Robert Kozak
+1  A: 

A "must have" debugging tool for SIlverlight is Silverlight Spy, available as a free download.

JonnyBoats
It isn't free anymore :(
Dimitri C.
A: 

I use SilverUnit to unit test Silverlight, it is an open source tool that sits on top of Typemock Isolator