Skip to content

Instantly share code, notes, and snippets.

View mparodi's full-sized avatar
:atom:

Mathias Parodi mparodi

:atom:
View GitHub Profile
@mparodi
mparodi / go_tests.md
Last active April 26, 2023 15:29
Testify and Mockery

Testear en Go con Testify y Mockery

Dependencias

Instalar testify y mockery

go get -u github.com/stretchr/testify

go get -u github.com/vektra/mockery/v2/...

Testify

CTRL + P para buscar config
{
"go.gopath": "/home/mathi/.gvm/pkgsets/go1.13/global",
"go.goroot": "/home/mathi/.gvm/gos/go1.13",
"go.autocompleteUnimportedPackages": true,
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true