Error occurred while performing unit tests
Go Test-run testimage
The error prompts are as follows:
Exit Status 3221225781
This error means that you need to load the corresponding library file can not be found, loading the corresponding library file on the learning.
But unit testing does not want to take all the dependencies to the corresponding directory, using environment variables
Because Vscode is using PowerShell with the previous Cmd.exe and not quite the same, CMD only need set command on line such as: Set classpath=%classpath%; C\ls\java. Jar
PowerShell Environment variables:
$ENV:P Ath
You can view the contents of all path,
Setting environment variables is also simple:
$ENV:p ath= $Env:P ath+ "; E:/bin"
Set environment variables for the system: right-My Computer-advanced-environment variable-path you need to restart the program that requires the environment variable
After Setup, you need to restart the program which requires the environment variable after setting, you need to restart the programs that needs to use the environment variableEthereal translationData Source:
PowerShell Settings environment variable--Go Unit test exit status 3221225781