如何使用命令行在VSMDI文件中运行子目录测试列表

问题描述

|| 我想从命令行在VSMDI文件中运行特定的子目录测试列表。 例如:
sanity
-> basic
-> basic1
functionality
-> func1
-> func2
有2个主要的测试列表健全性和功能性,我只想使用mstest命令行运行sanity-> basic2 我今天使用的命令行:
\"\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE\\MSTest.exe\" /testMetadata:\"Auto.vsmdi\" /testlist:\"Sanity\" /resultsfile:result.trx
    

解决方法

        您可以使用\“ / \”在测试列表层次结构中分隔测试列表,如下所示:
\"/testlist:OuterList/InnerList\"