Can not find MSTest or NUnit test runner

Parent Previous Next



Can not find MSTest or NUnit test runner


When running tests from the server, a user may encounter an error stating that the server can not find the MSTest or NUnit test runner. This can occure if the user has the these items installed in non default areas. To change where the Legi Test Server looks for these items, we will have to edit the config file found by default here:


C:\Program Files (x86)\Pragmatic Works\Workbench Server\LegiTest Command Line\PragmaticWorks.LegiTest.CommandLine.exe.config



The following sections in bold will need to be updated to match the user's install location for vstest or nunit:


<appSettings>

       <add key="NUnitTestRunnerLocation" value="%programfiles(x86)%\NUnit 2.6.3\bin\nunit-console.exe" />

       <add key="MSTestRunnerLocation" value="%programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" />

       <add key="schtasks.exe" value="%windir%\System32\schtasks.exe" />

       <add key="LegiTestCommandLine" value="%programfiles(x86)%\Pragmatic Works\Workbench Server\LegiTest Command Line\PragmaticWorks.LegiTest.CommandLine.exe" />

</appSettings>