visual-studio - 如何开始在我的 Visual Studio 项目中使用 Nunit?

标签 visual-studio nunit

我想开始使用 Nunit(最终),我使用的是 Visual Studio 2008。

是否像将 Nunit 导入我的测试项目一样简单?

我记得看到过 NUnit 的 GUI,它是否与单独的测试项目做的完全相同,除了直观地向您显示通过/失败?

最佳答案

我喜欢在我的外部工具中添加一个指向 NUnit 的链接。

在工具->外部工具下添加 NUnit

Title: &NUnit
Command: <path to nunit>
Arguments $(ProjectFileName) /run
Initial directory: $(ProjectDir)

之后,您可以通过编译然后按 alt-t + n 来快速运行它

关于visual-studio - 如何开始在我的 Visual Studio 项目中使用 Nunit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/315139/

相关文章:

c# - VS2017 和 NUnit 3.9 没有可用的测试

c# - Visual Studio 注册表捕获实用程序已停止工作,在 Windows7 中编译 C# 项目时出错

c# - Mock 不包含 Setup 的定义

c# - 文件 IO 的单元测试方法

tfs - 如何在 Microsoft 测试管理器中运行 selenium 测试

visual-studio - 我可以将 Visual Studio 的 Assisted IntelliSense 与 ReSharper 的建议系统一起使用吗?

visual-studio - 如何附加到 Visual Studio 中的进程?

c++ - Visual Studio 错误。它在 CodeBlocks 中工作...要求 const

c# - Windows Universal App,无法将所有必需的包添加到项目

generics - 将 NUnit 与通用可区分联合结合使用