gpt4 book ai didi

使用 Selenium 的 C# 代码覆盖率

转载 作者:太空狗 更新时间:2023-10-29 21:46:18 26 4
gpt4 key购买 nike

有谁知道为通过 Selenium 测试的 C#/.NET 项目创建代码覆盖率报告的方法吗?

最佳答案

我找到了以下文章 "Code Coverage of ASP.NET Applications on IIS"来自 NCover 的人们,not free ,它支持 IIS 检测和代码覆盖率。这将使您能够运行 Selenium 并收集覆盖率结果。

That ASP.NET applications are fairly difficult to test may be the understatement of the century. In this article, we’re going to show you how to test ASP.NET applications with Selenium, and how to use NCover to review your test coverage.

While it is possible to get 100% coverage for your ASP.NET application using Selenium, we highly recommend that you develop your application in layers and test as many of those layers as possible with a unit testing framework such as NUnit, MSTest, or MbUnit.

关于使用 Selenium 的 C# 代码覆盖率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9824990/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com