Brandon Greeley
Sign in Subscribe

Testing

A collection of 2 posts
Selectively Running Tests in Go
Go

Selectively Running Tests in Go

This should most likely be filed in "things I'll probably forget unless I write it down." This post covers how to selectively run a subset of tests in Go. This can be useful for running a single test, all tests with a certain naming convention in
09 Sep 2022 3 min read
Generating Mock Versions of Interfaces in Go
Go

Generating Mock Versions of Interfaces in Go

I've been a big fan of using Testify [https://pkg.go.dev/github.com/stretchr/testify]'s mocking capabilities and it has made building unit tests really easy. The one piece that I feel like is missing is the autogeneration of a basic mock given an interface.
04 Jun 2021 3 min read
Page 1 of 1
Brandon Greeley © 2025
Powered by Ghost