如何获取使用Silverlight单元测试创​​建的单元测试的代码覆盖率。 [英] How do I get the code coverage of unit tests created using Silverlight unit tests.

查看:81
本文介绍了如何获取使用Silverlight单元测试创​​建的单元测试的代码覆盖率。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们有一个基于PRISM的MVVM Silverlight应用程序(SL5)。

想法是为viewmodel创建单元测试,在某些地方创建视图代码。



我们探索了msTest,nunit和Silverlight单元测试框架,并得出结论Silverlight单元测试仅适用于我们的应用程序。

问题是:

1. Silverlight单元测试是基于PRISM的Silverlight应用程序的最佳方式吗?

2.如何获得我单位的代码覆盖率Silverlight Unit测试框架中的测试?

Hi,
We have a PRISM based MVVM Silverlight application(SL5).
The idea is to create unit tests for the viewmodel and in some places view code.

We explored msTest, nunit and Silverlight unit test framework for the same and reached a conclusion that Silverlight unit test only work with our application.
The questions are:
1. Is Silverlight unit test the best way to go about for PRISM based Silverlight applications?
2. How to get the code coverage for my unit tests in Silverlight Unit test framework?

推荐答案

这篇关于如何获取使用Silverlight单元测试创​​建的单元测试的代码覆盖率。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆