For go-test runner, when running the TestFile command for a file
which is in a directory nested inside the current working directory,
there's a space missing between the command and file path.
Running the newly added test case without the fix would produce:
go test./go/...
^
Here, a space is missing
Test Update
As there's a need to cd inside the test case, we cannot just use the cd - command. Instead, the current working directory will be stored in a global variable pwd and the after_each function will use that to cd back.
For
go-test
runner, when running theTestFile
command for a file which is in a directory nested inside the current working directory, there's a space missing between the command and file path.Running the newly added test case without the fix would produce:
Test Update
As there's a need to
cd
inside the test case, we cannot just use thecd -
command. Instead, the current working directory will be stored in a global variablepwd
and theafter_each
function will use that tocd
back.