Of course there's the Silverlight Unit Test Framework (which seems more like integration testing to me), this port of the NUnit.Framework assembly, and SilverUnit, but what other options are available for Silverlight unit testing?
Any good/bad experiences with any one of those (or others)?
The Silverlight Unit Testing Framework is an adaptation of the same metadata from Visual Studio's test framework. I developed it in my spare time a few years ago while working on the Silverlight team, and today we're shipping it a little more formally.
I recommend it simply because it is being used by so many teams inside and outside of Microsoft, and if you've used the existing test metadata, it all just works - no new learning.
Find it here:
The framework does have limitations, unfortunately
Because of the security model for Silverlight Applications, the framework has less integration that the typical VS test suite: tests run inside the browser, are technically built Silverlight apps, and automation and code coverage are a bit of a challenge to get going.
But it's a first step in doing Silverlight development.
In the future, the test framework is actually going to become a proper part of the Silverlight Toolkit - additional tools including an automated test runner, build server integration, and even simple block-level code coverage will be released.
You can use the Silverlight Unit Testing Framework to do your testing. THere is an example here
There is also WebAii from Art Of Test. I haven't used this framework in anger but have managed to use it test the front end parts of a Silverlight Application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With