-
Create a starter test
package main import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Tool", func() { It("should maintain logic", func() { Expect(true).To(Equal(false)) }) })
-
Generate the suite runner
$ ginkgo bootstrap
(which yields
<package-name>_suite_test.go
) -
Create a "Go Test" Run Configuration for the suite
- Back in GoLand, open
<package-name>_suite_test.go
. - In the gutter, click the green "play" button.
- Back in GoLand, open
-
Configure the execution to recurse to pick-up all tests:
- Run > Edit Configurations...
- Under the
Go Test
node, select the node named<TestName> in <package-name>_suite_test.go
- Set
Go tool arguments
to-r
Last active
June 2, 2019 02:56
-
-
Save jtigger/24da8b7d768b889758b8d7a39d429858 to your computer and use it in GitHub Desktop.
Running Ginkgo specs in GoLand
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment