Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I execute silverlight unit tests from the command line

I've a set of tests for a silverlight application that use Silverlight's test framework. I can execute these from within visual studio and they run beautifully. I can also build my code from outside Visual studio using MSBuild following the tips in Jeff Wilcox's blog post: http://www.jeff.wilcox.name/2009/01/silverlight-msbuild-tricks-video/

I would like to execute my unit tests from the command line (Using MSBuild or NAnt etc.) and fail the Build if the tests fail. This does not appear to be possible with the current Silverlight MSBuild assets.

So my question is:

How can I execute silverlight unit tests from the command line using a build tool like MSBuild?

like image 401
Myrtleoturtle Avatar asked Feb 13 '09 11:02

Myrtleoturtle


2 Answers

I have had success with StatLight. http://statlight.codeplex.com/

like image 72
Brian Jimdar Avatar answered Oct 15 '22 07:10

Brian Jimdar


This is a question I posed on the silverlight.net forum and got some response from Jeff Wilcox. I think this problem is still open:

http://silverlight.net/forums/p/57811/166439.aspx

The latest post recommends a promising powershell solution

like image 38
BC. Avatar answered Oct 15 '22 09:10

BC.