描述
我想用vstest.console运行一个.net核心NUnit测试。这运行得很好,但我想向"dotnet测试"执行传递一个参数,在我的情况下是"--no build"如何将此参数解析为dotnet执行?我没有找到正确的运行设置变量
复制步骤
vstest.console.exe"project.json"/UseVsixExtensions:true/Settings:Settings.runsettings
预期行为
["C:\Program Files\dotnet\dotnet.exe"test"project.json"--端口55307--无构建]
实际行为
["C:\Program Files\dotnet\dotnet.exe"test"project.json"--端口55307]
环境
windows 7
项目.json
{"版本":"1.0.0-*",
"依赖项":{"NUnit":"3.5.0","dotnet测试nunit":"3.4.0-beta-3"},
"testRunner":"nunit","框架":{"netcoreapp1.0":{"imports":"portable-net45+win8","依赖项":{"Microsoft.NETCore.App":{"版本":"1.0.0-*","类型":"平台"}}}}}`
这是来自vstudio开发团队的答案
https://github.com/Microsoft/vstest/issues/383