Goland Tests Running Slow on Windows
If you are using JetBrain’s Goland IDE on Windows, you might find that running your go application takes forever to build or run tests on.
On my machine, when you went running any test, it would take 45 seconds in the state of Instantiating tests… then finally run the test in a fraction of a second.
Solution
Your anti-virus is the cause of the delay. To check if this is true, just disable its real-time checking and then rerun your tests. If it runs instantly, then it definitely is the issue.
From here, you need to either find a different antivirus or add an exception. Unfortuantely goland saves its files in the temp folder which is a common place that you probably don’t want to add as an exception.
C:\Users\szaze\AppData\Local\Temp
If you have solutions to this, please write a comment below.