【问题标题】:Creating a shortcut to run an automated test创建运行自动化测试的快捷方式
【发布时间】:2016-07-21 13:39:03
【问题描述】:

为简单起见,我想创建一个桌面快捷方式,单击该快捷方式会运行我创建的自动化 C# 测试方法。这样,当点击图标时,测试将在没有 Visual Studio 的情况下运行。

如果我可以做到的话,谁能为我提供一些指导,告诉我如何做到这一点?我会很感激的。谢谢!

【问题讨论】:

  • 测试方法是指NUnit测试吗?

标签: c# visual-studio automated-tests coded-ui-tests desktop-shortcut


【解决方案1】:

你可以invoke MSTest from the command line:

mstest /testcontainer:tests.dll /test:mytest

【讨论】:

  • 同样有一个NUnit command line test runner。确定要使用的命令行后,将其存储在 bat 文件中。然后使用 bat 文件作为运行测试的快捷方式。
猜你喜欢
  • 2011-07-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-10-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多