autogold icon indicating copy to clipboard operation
autogold copied to clipboard

Automatically update your Go tests

Results 19 autogold issues
Sort by recently updated
recently updated
newest added

``` $ go get github.com/hexops/autogold go get: github.com/hexops/[email protected] updating to github.com/hexops/[email protected] requires github.com/hexops/[email protected] requires mvdan.cc/[email protected]: invalid version: unknown revision d24d34e18d44 ``` Go Version: go version go1.16.10 darwin/amd64

Hey there, it seems like inline snapshots don't work when using types from other packages. In my case `parser` and `parser_test`. I've got the following package setup: ``` parser/ parser.go...

With usage `t.Hepler()` when we got user code line instead of lib line in `go test` message.

Hi! When running `go test -update` on a freshly created tests I get: ``` ❯ go test -update 2021-03-16 15:19:44 --- FAIL: Test_WorstScores_nilResult (0.00s) autogold.go:82: rename testdata/nil.golden /tmp/go-golden-074934610/nil.golden: invalid cross-device...

Would be awesome if it was possible to exclude specific fields. Use case is that if you get UUIDs in a response that always will be different ofc :).

valast

## Description One of the built-in Goland linter gives warning about the redundant type. It would be nice if the generated result doesn't contain redundant fields. Help the code become...

valast

minimal example code, without autogold: ``` package foo_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) type newUserStartTestSuite struct { suite.Suite } type NewUserStart string const ( Registration = `registration` EmailVerification =...

This is a WIP PR which currently allows `autogold.Want("name", ...)` calls anywhere in the file but requires the name be unique within the scope of the entire file (rather than...

What will I do with all the free time I get from using autogold? :-) I noticed two things that could probably improve `-update` behavior, based on my experience with...

v2

Not unreasonable that someone may have a fair amount of go-cmp tests and want to integrate autogold slowly. We could allow this by having `autogold.Want(...).Value()` return the `interface()` value it...

help wanted