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/
我对使用Silverlight测试框架的silverlight应用程序进行了一系列测试。我可以在视觉工作室内执行这些操作并且它们运行得很漂亮。我还可以使用MSBuild从Visual Studio外部构建我的代码,遵循Jeff Wilcox博客文章中的提示: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.
我想从命令行(使用MSBuild或NAnt等)执行我的单元测试,如果测试失败,则无法使用Build。目前的Silverlight MSBuild资产似乎无法实现这一点。
So my question is:
所以我的问题是:
How can I execute silverlight unit tests from the command line using a build tool like MSBuild?
如何使用像MSBuild这样的构建工具从命令行执行silverlight单元测试?
3 个解决方案
#1
I have had success with StatLight. http://statlight.codeplex.com/
我在StatLight上取得了成功。 http://statlight.codeplex.com/
#2
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:
这是我在silverlight.net论坛上提出的一个问题,得到了Jeff Wilcox的一些回复。我认为这个问题仍然存在:
http://silverlight.net/forums/p/57811/166439.aspx
The latest post recommends a promising powershell solution
最新帖子推荐了一个有前途的PowerShell解决方案
#3
You can also check out project Lighthouse: http://lighthouse.codeplex.com/ (see also this as a reference)
您还可以查看项目灯塔:http://lighthouse.codeplex.com/(另请参阅此参考)
I haven't tried it vs Statlight so I cannot comment on which is better. Come January I will give it a try.
我没有尝试过它与Statlight,所以我无法评论哪个更好。一月份我会尝试一下。
#1
I have had success with StatLight. http://statlight.codeplex.com/
我在StatLight上取得了成功。 http://statlight.codeplex.com/
#2
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:
这是我在silverlight.net论坛上提出的一个问题,得到了Jeff Wilcox的一些回复。我认为这个问题仍然存在:
http://silverlight.net/forums/p/57811/166439.aspx
The latest post recommends a promising powershell solution
最新帖子推荐了一个有前途的PowerShell解决方案
#3
You can also check out project Lighthouse: http://lighthouse.codeplex.com/ (see also this as a reference)
您还可以查看项目灯塔:http://lighthouse.codeplex.com/(另请参阅此参考)
I haven't tried it vs Statlight so I cannot comment on which is better. Come January I will give it a try.
我没有尝试过它与Statlight,所以我无法评论哪个更好。一月份我会尝试一下。