Golang mockery

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Jan 18, 2019
5 590
This plugin provides Golang developers a shortcut for auto-generating testify mocks by offering a shortcut to call the mockery generator behind the scenes.

Recent change notes

Add support for multiple GOPATHs - thanks to Ron Amihai

General usage instructions

As a prerequisite, you should:
  • set up your GOPATH environment variable (if you consider using this plugin, you most likely did this already)
  • install the 'mockery' generator with `go get github.com/vektra/mockery/.../`
When editing a .go file, this plugin adds e 'Golang mockery' entry in the 'Generate...' menu.