prash-wghats / vscode-nxunit-test-adapter

Run your Nunit or Xunit test for Desktop .NET Framework or Mono using the Test Explorer
MIT License
6 stars 2 forks source link

Unable to run discover using custom nunit path #3

Open jonyeezs opened 5 years ago

jonyeezs commented 5 years ago

i've set NXunit Explorer:Nunit -> %UserProfile%\.nuget\packages\nunit.consolerunner\3.9.0\tools\nunit3-console.exe

It doesn't run: on console i get:

[2019-02-14 23:16:56.950] [INFO] Loading tests
[2019-02-14 23:16:57.086] [INFO] discover mode cmd: c:\Users\jyee\.vscode\extensions\wghats.vscode-nxunit-test-adapter-0.1.0\bin\Release\testrun.exe -n %UserProfile%\.nuget\packages\nunit.consolerunner\3.9.0\tools\nunit3-console.exe discover -t ;

I tried running that same code in powershell. This is the result:

C:\Dev\core\Everwealth.Api [support-vscode-test]> c:\Users\jyee\.vscode\extensions\wghats.vscode-nxunit-test-adapter-0.1.0\bin\Release\testrun.exe -n %UserProfile%\.nuget\packages\nunit.consolerunner\3.9.0\tools\nunit3-console.exe discover -t

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at TestExplorer.Program.Main(String[] args)
prash-wghats commented 5 years ago

Added env variable expansion for unit exes. updated the extension.