c# - 我可以将 NUnit 3 测试添加到 Visual Studio 2015 负载测试吗?

标签 c# visual-studio visual-studio-2015 nunit load-testing

我有一个用 C# 编写的测试自动化框架,单元测试用 NUnit(不是 MSTest)编写。我创建了一个新的 Visual Studio 负载测试 配置,我希望能够将这些 NUnit 测试添加到负载测试中,但是 Visual Studio (2015) 没有列出它们。我已经安装了 NUnit 3 测试适配器。我可以将 NUnit 测试添加到 VS 负载测试,还是它们必须是 MSTest 单元测试?

最佳答案

直到现在,除了将您的 NUnit 测试转换为 MSTest 以将您的 NUnit 测试添加到 LoadTest 之外,还没有任何包或解决方法。同样的问题也适用于 XUnit 测试。我希望 MS 能够将 XUnit 和 NUnit 测试添加到 LoadTest。

一个解决方案是您可以转换 NUnit 测试: http://www.stormbase.net/2010/01/12/converting-from-nunit-to-mstest/

关于c# - 我可以将 NUnit 3 测试添加到 Visual Studio 2015 负载测试吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39413727/

相关文章:

c# - 带有更新 2 的 Visual Studio 2015 - 'The Scc Display Information package did not load correctly'

c# - 从代码 ⇒ IL 或 IL ⇒ native 代码创建的引用在哪里

c# - 仅发布版本的 MVC 授权属性

c# - 如何在 Windows 10 通用应用程序上使用 C# 获取本地主机名

c# - 使用 Zxing 库、Xamarin.android 应用程序扫描时,将屏幕方向锁定为纵向。

c# - 使用 COM 组件时出错

visual-studio - Visual Studio 2015 中的 Xamarin 是免费的吗?

c++ - 跨 C++ 模块传递指向成员函数的指针

c# - 将 Unicode 字符串转换为转义的 ASCII 字符串

c# - 每次构建时,其中一个程序集都会从我的解决方案中删除