Running tests
Generally, GoLand runs and debugs tests in the same way as other applications, by running the run/debug configurations you have created. When doing so, it passes the specified test classes or methods to the test runner.
If you run a test for which there is no permanent run/debug configuration, a temporary configuration is created. You can then save such a configuration using the Run/debug configuration dialog if you want to reuse it later.
The tests run in the background, so you can execute several tests at the same time.
Each running configuration gets its own tab in the Run tool window (the Test Results tab). One tab can aggregate several tests.
Run a run/debug configuration for tests
To run a run/debug configuration for a test, you must create the run/debug configuration. Read about creating a run/debug configuration for tests in Creating test configurations.
Click the Edit Run/Debug Configurations list and select configuration that you want to run.
Click the Run button .
Run a test from the gutter menu
When you run a test from the gutter, you create a temporary run/debug configuration. To save this configuration, navigate to Run | Edit Configurations, select the grayed-out item in the configurations list, and click the Save Configuration button .
Click the Run Test icon in the left gutter.
Select Run <configuration_name>.
Run a test from the context menu
Right-click a test file or a directory with test files and select
(for directories) or (for files).