c# - 从外部运行 Visual Studio 测试项目

标签 c# visual-studio unit-testing powershell windows-8

我正在尝试使用来自 Windows 8 应用程序/另一个 c# 项目的普通 c# dll 项目和单元测试项目(引用 c# 项目 dll)运行 Visual Studio 2012 解决方案。

如何从另一个 Visual Studio 项目触发单元测试的运行?

有什么方法可以用 powershell 脚本触发吗?

最佳答案

mstest.exe 是命令行测试运行器。

它记录在 MSDN 上:http://msdn.microsoft.com/en-us/library/jj155804.aspx

我认为没有理由这在 PowerShell 中不起作用。

关于c# - 从外部运行 Visual Studio 测试项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18525813/

相关文章:

c# - 反序列化具有多个元素属性的 XML 文件 - 属性不反序列化

c# - 如何在构建 ASP.NET Core 项目时自动安装 npm 模块

c - Visual Studio "illegal use of this type as an expression"

c# - 最新的 VS Mac 更新导致 Xamarin Android 中的 SetContentView(resourceid) 出现 SIGSEGV

unit-testing - 我应该模拟单元测试中的每一个依赖项吗?

php - 使用工厂单元测试 Zend Framework 2 模块

c# - 您如何知道 ItemsControl 的哪个元素在 MVVM 中发送事件?

c# - 在 C# 中将 short[] 数组写入文件的最佳方法是什么?

c# - NHibernate DateTime 毫秒精度

c++ - 在不引入错误的情况下转换项目