Visual Studio 2010 Test Runner 可以运行 XUnit 吗? [英] Can Visual Studio 2010 Test Runner run XUnit?

查看:30
本文介绍了Visual Studio 2010 Test Runner 可以运行 XUnit 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用集成的 Visual Studio 2010 测试运行器来运行除 MSTest 之外的其他框架(Xunit、NUnit 等)?

Is it possible to use the integrated Visual Studio 2010 test runner to run other frameworks (Xunit, NUnit etc.) besides MSTest?

有人知道吗?

推荐答案

否,但您可以添加外部工具.转至工具 |外部工具...并点击添加

No but you can add an external tool. Go to Tools | External Tools... and click Add

标题:xUnit 测试

Title: xUnit Test

命令:xunit.console.exe(设置为控制台测试运行器的完整路径)

参数:$(BinDir)$(TargetName)$(TargetExt)

Arguments: $(BinDir)$(TargetName)$(TargetExt)

初始目录:$(BinDir)

Initial directory: $(BinDir)

点击使用输出窗口

点击确定.这会将 xUnit Test 命令添加到 工具 菜单.

Click OK. This adds the xUnit Test command to the Tools menu.

然后您可以创建一个快捷键,以便更轻松地运行外部工具.例如:Ctrl + T

You can then create a shortcut key to making running the external tool easier. eg: Ctrl +T

这篇关于Visual Studio 2010 Test Runner 可以运行 XUnit 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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