TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

I've just uploaded a new version of TestDriven.Net with support for Silverlight 2.0 Beta 1. Microsoft have certainly kept me on my toes as there have been lots of changes since Silverlight 1.1. I'm sorry it has taken a while!

At the moment you're limited to running individual public methods (ad-hoc tests). If you need to run a suite of tests I recommend you use this in conjunction with the Silverlight Testing Framework that was released at MIX. Jeff Wilcox has posted a detailed tutorial that shows how to use the framework here. When running your tests using 'Test With > Silverlight', bear in mind that you're simply executing the test method and any test attributes (TestInitialize etc.) will be ignored.

TestWithSilverlight2

I've also included an application called 'agx.exe' that lets you run console applications using the Silverlight/CoreCLR from the command line. After you've installed TestDriven.Net you will find this standalone application here: \Program Files\TestDriven.NET 2.0\agx.exe. This is simply an application that I use for my own testing purposes that I thought other people might find useful.

ConsoleSilverlight2

You can download the new version of TestDriven.Net from here.

Published Thursday, April 24, 2008 7:44 PM by Jamie Cansdale

Comments

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

Great news Jamie.

I started playing with Silverlight for the first time yesterday and was stunned to learn I couldn't build and run my existing unit tests (using nunit and rhinomocks) against the Silverlight CLR.

The Silverlight Testing Framework is better than nothing but I really feel Silverlight development is a real step backwards without the support of the familiar unit testing frameworks and tools such as TestDriven.net. Running ALL tests in the browser is going to be painful.

Do you have plans to implement testing at the class and asm level?

thanks again.

Monday, April 28, 2008 11:16 AM by Mike

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

That is great to see you put in the support.  I have been working through the integrations of the test framework with Cruise Control, so to have the test runner for individual methods is a real plus.  Is there any support for the UI tests/Async testing?

Monday, April 28, 2008 2:49 PM by Eric Hexter

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

Based on your experience writing agx.exe, what would it take to host Silverlight UIs outside the browser similar to what you can do with Moonlight?

Monday, April 28, 2008 10:14 PM by Oran

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

@Mike,

Yes, I'll continue to investigate ways of running tests at the class and assembly level. I had been looking into executing tests using NUnitLite and xUnit.

Unfortunately as of Silverlight 2.0 Beta 1, the CoreCLR isn't binary compatible with the .NET 2.0 'System' assembly. This scuppers the chances of NUnitLite or xUnit working out of the box with Silverlight.

For the moment I'll continue explore the Silverlight Testing Framework and see what integration can be done with that.

Tuesday, April 29, 2008 5:25 AM by Jamie Cansdale

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

@Eric Hexter,

I'll see if I can integrate with the Silverlight Testing Framework and leverage Microsoft's support for UI tests/Async testing.

Tuesday, April 29, 2008 5:30 AM by Jamie Cansdale

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

@Oran,

Laurent Bugnion has come up with a way to run standalone Silverlight applications using a .hta file. See his description here:

www.galasoft.ch/.../article-2008042301.html

What I would really like to see is a way to deploy and execute Silverlight .xap files on multiple platforms. I would be very surprised if Microsoft don't do this using Live Mesh. They are such an obvious choice for a cross platform UI that it would  be madness not to.

Tuesday, April 29, 2008 5:40 AM by Jamie Cansdale

# re: TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1

Your solution is pretty slick.  I would not have thought of it.  I am playing around with the agx app as a way to host a continous integration.  I was really strugling with a good method to get test results back into the build.  I think you solution could work better than the one I was attempting.

The main problem I see is that hosting the xap locally causes some security issues around the System.Net namespace. So full integration testing is out with this solution.. but I think that could be solved with a modified testrunner that could load the tests remotely.  If you would like to collaborate on this I would be more than willing to pitch in.

Tuesday, April 29, 2008 4:10 PM by Eric Hexter

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Silverlight NUnit Projects

I've been doing some experiments to find out if it's possible to execute NUnit on a Silverlight project

Thursday, May 01, 2008 3:34 PM by TestDriven.NET by Jamie Cansdale

# TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1 - TestDriven.NET by Jamie Cansdale

Pingback from  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1 - TestDriven.NET by Jamie Cansdale

# Developer News » Blog Archive » How to drop all tables, all views, and all stored

Pingback from  Developer News  » Blog Archive   »  How to drop all tables, all views, and all stored

# Developer News » Blog Archive » BA Executive Club? Ridiculous. I’ve had a BA Executive Club

Pingback from  Developer News  » Blog Archive   »  BA Executive Club? Ridiculous. I’ve had a BA Executive Club

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » Can’t access array in a class I have been trying

Pingback from  Developer News  » Blog Archive   »  Can’t access array in a class    I have been trying

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » eoSense Introduces JPA Visualization Tool Visualizing JPA operations can help

Pingback from  Developer News  » Blog Archive   »  eoSense Introduces JPA Visualization Tool Visualizing JPA operations can help

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » Mastering engineer Greg Calbi on the loudness wars Depressing but

Pingback from  Developer News  » Blog Archive   »  Mastering engineer Greg Calbi on the loudness wars Depressing but

# Developer News » Blog Archive » CodeSnip: Redirecting an HTTP Request to HTTPS in IIS 7.0

Pingback from  Developer News  » Blog Archive   »  CodeSnip: Redirecting an HTTP Request to HTTPS in IIS 7.0

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » Book Review: ASP.NET 3.5 for Dummies In this review Anand

Pingback from  Developer News  » Blog Archive   »  Book Review: ASP.NET 3.5 for Dummies     In this review Anand

# Developer News » Blog Archive » help with pulling and using uri from rss I am

Pingback from  Developer News  » Blog Archive   »  help with pulling and using uri from rss    I am

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » VMware Unveils OS for the Data Center Making what now

Pingback from  Developer News  » Blog Archive   »  VMware Unveils OS for the Data Center  Making what now

# Developer News » Blog Archive » Developers: will you or have you signed for ribbon rights?

Pingback from  Developer News  » Blog Archive   »  Developers: will you or have you signed for ribbon rights?

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

# Developer News » Blog Archive » Getting ASP.NET Routing Up and Running - The Definitive Guide

Pingback from  Developer News  » Blog Archive   »  Getting ASP.NET Routing Up and Running - The Definitive Guide

# Developer News » Blog Archive » .Net Fault Injection ? Very early proof of concept I?ve

Pingback from  Developer News  » Blog Archive   »  .Net Fault Injection ? Very early proof of concept I?ve

# Developer News » Blog Archive » Group Policy and PowerShell in Windows 7 Following on from

Pingback from  Developer News  » Blog Archive   »  Group Policy and PowerShell in Windows 7 Following on from

# Developer News » Blog Archive » TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Pingback from  Developer News  » Blog Archive   »  TestDriven.Net 2.13: Support for Silverlight 2.0 Beta 1I’ve just uploaded

Leave a Comment

(required) 
(required) 
(optional)
(required)