没有执行msTest的测试 [英] No tests to execute msTest

查看:265
本文介绍了没有执行msTest的测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MSTest在命令行上运行.NET单元测试

I'm trying to run .NET unit tests on the command line using MSTest

我的命令是

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" /testcontainer:"full path of dll" /resultsfile:TestResults.trx

运行时返回

开始执行...
没有要执行的测试.

Starting execution...
No tests to execute.

单元测试在VS 2012 IDE中运行得很好.

The unit test runs perfectly fine in VS 2012 IDE.

我需要怎么做才能使其在cmd线上运行?

What do I need to do to get it running on the cmd line please?

推荐答案

尝试一下:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" /testcontainer:full path of dll /resultsfile:TestResults.trx

即您的dll路径周围没有"

Ie without the " " around your path to the dll

这篇关于没有执行msTest的测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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