开发者

Powershell error in Executing NUnit test

开发者 https://www.devze.com 2022-12-17 21:48 出处:网络
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?

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 Fil开发者_C百科es\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


You didn't put the part

/config=Release

inside your quoted command text.

Your command should probably look like

"c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe /config=Release C:\projects\IntegrationTests\IntegrationTests.nunit" 2>&1

... 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

& 'c:\Program Files\NUnit 2.4.\bin\nunitconsole.exe' /config=Release C:\Projects\IntegrationTests\IntegrationTests.nunit 2>&1
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号