I have a Go project structure like this:
When I have proc_test.go open in GoLand, I can right-click a test case and select "Run 'TestProc_MyTest'" in the context menu. This creates a Run Configuration of the Go Test type and executes it. The problem is that the working directory is always set to coolproject/pkg/processor instead of coolproject/. It's an issue because my test case assumes working directory is coolproject and wants to load testdata/inputs.txt relative to it.
If I go to Run -> Edit Configurations -> expand 'Templates' on the left hand side, then click 'Go Test,' it tells me, "Template. The values saved here will be used for new configurations of the same type." However, even if I modify that field to /Users/coolguy/coolproject and then delete all existing Run Configurations, if I try to run a test by right clicking the test case (as mentioned above), the configuration it creates is still /Users/coolguy/coolproject/pkg/processor.
Is that a bug or is there some other way to configure this?