Skip to content

Instantly share code, notes, and snippets.

@spiegela
Created January 26, 2019 22:53
Show Gist options
  • Save spiegela/baefd217d43757869f95e304dbd8ed13 to your computer and use it in GitHub Desktop.
Save spiegela/baefd217d43757869f95e304dbd8ed13 to your computer and use it in GitHub Desktop.
Intellij File template for Ginkgo Test
package ${GO_PACKAGE_NAME}_test
#set( $CAMEL_NAME = ${StringUtils.removeAndHump( ${GO_PACKAGE_NAME} )} )
import(
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func Test${CAMEL_NAME}(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "${CAMEL_NAME} Spec")
}
var _ = Describe("${CAMEL_NAME}", func() {
#[[$END$]]#
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment