问题描述
需要使用exe文件在自定义环境中执行测试。
要运行特定测试,我们可以从测试资源管理器中选择测试并将其保存在播放列表中然后使用该播放列表运行测试,但由于vsmdi文件用于运行测试,我无法从播放列表运行测试。
cd D:\\git \\03a \\ Source \\ \\\XYZ \\ Common \\Services \\Development\ \ Test
& D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ serif; font-size:12.8px"> x86-Mono \\Debug \\ UnitTest。 exe
/ testmetadata:D:\\git \\03a \\ Source \\\ \\ XYZ \\Common \\ Services \\ Development\\Test\\Test.vsmdi
/ runconfig:D:\ \git\\03a\\ \ 来源\\XYZ \\Common \\Services \\ 开发\\Test \\Test。 testrunconfig
/ searchpathroot:d:\\git \\03a \\ Build \\bin\\XP-x86-mono \\ Debug \\
/ TestList:L4
现在正在使用来自vsmdi的TestList。
如何使用播放列表?
Tests need to be executed in a customized environment using an exe file.
To run specific tests, we can select tests from test explorer and save it in a playlist and then use that playlist to run the tests but since vsmdi file was being used to run the test I am not being able to run the test from playlist.
cd D:\\git\\03a\\Source\\XYZ\\Common\\Services\\Development\\Test & D:\\git\\03a\\Build\\bin\\XP-x86-Mono\\Debug\\UnitTest.exe /testmetadata:D:\\git\\03a\\Source\\XYZ\\Common\\Services\\Development\\Test\\Test.vsmdi /runconfig:D:\\git\\03a\\Source\\XYZ\\Common\\Services\\Development\\Test\\Test.testrunconfig /searchpathroot:d:\\git\\03a\\Build\\bin\\XP-x86-mono\\Debug\\ /TestList:L4
Right now TestList is being used from vsmdi.
How to use playlist ?
这篇关于我们正试图将我们的项目从VS2008转移到VS 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!