Reputation: 8035
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)?
Upvotes: 11
Views: 763
Reputation: 1795
For running the Silverlight Unit Tests on your build server or from command line you can use Lighthouse - Silverlight Unit Test Runner
http://lighthouse.codeplex.com/
Upvotes: 1
Reputation: 10927
<3 NUnit. I've not used it for Silverlight yet, but it's easy to use, powerful, and has great support (a lot more than the Silverlight Unit Testing Framework). The best part about NUnit is how many utilities there are to go along with it -- because of the strong adoption as well as its JUnit compatibility in many areas, it's simple to integrate into your build process, get reports in many different formats, etc., etc.
Upvotes: -1
Reputation: 6385
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.
Upvotes: 11
Reputation: 22438
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.
Upvotes: 2