Silverlight 2 unit test framework binaries updated

The Silverlight Unit Test Framework ships officially inside of the Silverlight Toolkit, since the team has a dependency on it for thousands and thousands of unit tests.

I recently did hear a few complaints that the Silverlight Unit Test Framework site on the MSDN Code Gallery is a little out of date. I hear you, and am going to try to refresh the wiki and documentation a little bit.

In the meantime, I’ve updated the site with the latest Silverlight 2 Unit Test Framework binaries for download. Here’s a direct link to the download. I don’t have any updated bits available for the Silverlight 3 Beta at this time.

What’s new in the July 2009 bits of the Silverlight Unit Test Framework?

  • Support for the [Timeout(...)] attribute on test methods.
  • Improvements to the Test Service interface. The service now has an asynchronous reporting phase that allows for more robust automation options (details coming soon).
  • Minor interface changes
  • Minor bug fixes

I’ll try and get updated templates produced this month as well. Hope this is useful!

Comments

  1. Daren May
    July 1st, 2009 | 2:21 pm

    Hey Jeff,

    Are there any plans for a “headless” variant of the testing framework – i.e. something that can run on a build server, etc.?

  2. July 1st, 2009 | 2:24 pm

    @Daren,
    Your build server will need to run in interactive mode, even with the automation tools I’m looking to release. This is because the majority of tests in use today require the Silverlight runtime and to be run inside the web browser.

    If you simply want to validate simple business logic or objects, it wouldn’t be too tough to cross-compile a regular, full .NET CLR, test project with the standard TFS/VSTS setup to run those tests (or use NUnit, etc.).

  3. July 1st, 2009 | 4:38 pm

    jeff, thansk a bunch for keeping up with the SL test framework.. ive got a couple questions / requests:

    1) can the test framework be put on codeplex so that there can be discussion postings so that users of the framework can help each other out and share examples?

    2) can there be a sample provided of InternalsVisibleTo (used for allowing tests to call protected methods), and do you know if this currently works in the SL test framework? Does it require strongly typed assemblies to work?

    3) Is there any way to customize the look of the results page?

    thanks again for continuing your work on this framework!

  4. July 1st, 2009 | 4:57 pm

    hrm, looks like i overlooked this blog post of yours already which addresses #2, ill give it a closer look:

    http://www.jeff.wilcox.name/2008/03/silverlight2-unit-testing/

    thanks again

  5. Rick
    July 1st, 2009 | 7:45 pm

    Is there any chance to get the test case work in interactive mode that is clicking here and there?

  6. Rick
    July 1st, 2009 | 7:46 pm

    Is there any chance to get the test case work in interactive mode that is clicking here and there?

    Just like Rational Robo.

  7. July 1st, 2009 | 10:52 pm

    @Rick,
    Not really – since the test framework is really running as an “untrusted” end user application, like all Silverlight applications, it isn’t able to do any interactive testing. Engineering a robust solution for user interface automation would be difficult, and require communicating with another process. Doing it right, and in a way that is easy enough to use, is a big technical challenge.