Silverlight 单元测试(使用 NUnit)
我正在使用 NUnit 来测试后端。单元测试是在构建时执行的(我使用 TeamCity 进行持续构建)。
现在我要测试前端(Silverlight 4.0)。因为测试是在构建时执行的,所以我必须模拟浏览器(TypeMock - 不是免费的,不是吗?)我可以以某种方式使用 NUnit.Mocks 吗?如何使用NUnit进行Silverlight测试?我发现 WHITE 框架有帮助吗?
关于用于 Silverlight 单元测试的软件/框架还有其他建议吗?
I'm using NUnit for testing back-end. Unit tests are being executed while building (I'm using TeamCity for continuous building).
Now I hove to test front-end (Silverlight 4.0). Because the tests are being executed while building, I have to simulate browser (TypeMock - is not free, isn't it?) could I use NUnit.Mocks somehow?. How to use NUnit for Silverlight testing? I've found WHITE framework could it help?
Any other advises about software/frameworks to use for Silverlight unit testing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 StatLight...
“StatLight 是一款为自动设置、运行和收集 Silverlight 单元测试结果而开发的工具。StatLight 有助于在练习 TDD/BDD/(在此处插入您的测试风格)时加快反馈周期)在 Silverlight 开发期间。”
http://statlight.net/
Check out StatLight...
"StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing TDD/BDD/(insert your test style here) during Silverlight development."
http://statlight.net/
作为替代方案,这里是 Silverlight 的 nUnit 端口:
http:// /greenicicleblog.com/2010/04/27/nunit-for-silverlight-updated/
As an alternative, here is an nUnit port for Silverlight:
http://greenicicleblog.com/2010/04/27/nunit-for-silverlight-updated/