执行 NUnit 测试时出现 Powershell 错误
这可能听起来很愚蠢,但我一直在尝试使用 powershell 脚本执行 NUnit 测试,进行了多次尝试,但没有希望。有不同的格式还是我需要添加插件?
任何帮助都会得到帮助...
Command = "c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" /config=Release "C:\projects\IntegrationTests\IntegrationTests.nunit" 2>&1
输出如下:
PS C:\测试> “c:\Program Files\NUnit2.4.8\bin\nunit-console.exe”/config=Release
“C:\projects\IntegrationTests\IntegrationTests.nunit”2>&1
您必须在“/”运算符的右侧提供值表达式。
在第 1 行:55 + "c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" / <<<<
config=发布“C:\projects\IntegrationTests\IntegrationTests.nunit”2>&1
提前致谢
This might sound silly but I have been trying to execute a NUnit test using powershell script, had several attempts but no hope. is there different format or do I need to add a plugin?
Any help would be appriciated...
Command = "c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" /config=Release "C:\projects\IntegrationTests\IntegrationTests.nunit" 2>&1
Output as below:
PS C:\tests> "c:\Program Files\NUnit2.4.8\bin\nunit-console.exe" /config=Release
"C:\projects\IntegrationTests\IntegrationTests.nunit" 2>&1
You must provide a value expression on the right-hand side of the '/' operator.
At line:1 char:55 + "c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" / <<<<
config=Release "C:\projects\IntegrationTests\IntegrationTests.nunit" 2>&1
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有将该部分放入
引用的命令文本中。
您的命令可能看起来像
...我没有检查 nunit-console.exe 命令行选项,但我想您已经测试过 nunit 命令是否有效。
You didn't put the part
inside your quoted command text.
Your command should probably look like
... i didn't check nunit-console.exe command line options, but i suppose you already tested if the nunit command works.
抱歉顶部对话框混乱,下面是正确的代码版本
Sorry for the mess in the top dialog, proper code version below