Generate a test for an element

Automate test generation

GoLand offers the option to quickly generate a test.

How to use:

Invoke with ⌘⇧T (macOS) / Ctrl+Shift+T (Windows/Linux), and select Test for ... from the popup.

You can choose to test a function/method, the whole file, or the whole package.


Related Resources

Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions