Powershell error while running NUnit test

This may seem silly, but I tried to run a NUnit test using a powershell script, had several attempts, but did not hope. is there another format or do i need to add a plugin?

Any help would be assigned ...

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 specify a value expression on the right side of the '/' operator.

In 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 at Advance

+4
source share
2 answers

Sorry for the clutter in the top dialog, the correct version of the code is below

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

You did not put part

 /config=Release 

inside your quoted team text.

Your team should look like

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

... I did not check the nunit-console.exe command line options, but suppose you already tested if the nunit command works.

+2
source

Source: https://habr.com/ru/post/1299022/


All Articles