go-approval-tests icon indicating copy to clipboard operation
go-approval-tests copied to clipboard

Results 17 go-approval-tests issues
Sort by recently updated
recently updated
newest added

Closes [40](https://github.com/approvals/go-approval-tests/issues/40) ## Description [Go runtime docs discourage traversing PC or FuncForPC on any returned PCs ](https://pkg.go.dev/runtime#Callers)as they can't account for inlining or return program counter adjustment. This leads to...

How might one use this together with [Ginkgo](https://github.com/onsi/ginkgo)?

While working with approval tests it is sometimes the case that one code change can result in many similar changes to a set of previously baselined approved files. In this...

Hi. This code: https://github.com/approvals/go-approval-tests/blob/32d5677069bd623f06e909e11474d27400539dae/reporters/vscode.go#L20-L29 Does not work for the case when https://code.visualstudio.com/docs/remote/ssh is used. It is possible to run remote code instance with something like: https://stackoverflow.com/questions/62201080/is-it-possible-to-use-the-code-command-in-sshed-terminal-to-open-vs-code-on-l But that requires investigation...

- Add a test case covering simultaneous usage of the scrubber and file extension options - Add a test case covering name generation when using table driven tests

Currently, the files are named after the executed test. However, if you want to run multiple approvals in a single test (for example, with a table driven test) then the...

A proof-of-concept PR implementing ability to pass a custom scrubbing function. It received the verified string and a `replacer`, returns a scrubbed verified string. Seems like a legit shortcut to...

A proof-of-concept PR implementing https://github.com/approvals/go-approval-tests/issues/38 . Ignore the implementation details for now, focus on the public API. If it looks right then we can work on it! (I'll also happily...

Regarding [findFileName](https://github.com/approvals/go-approval-tests/blob/main/approval_name.go#L50) [Go runtime docs discourage traversing PC or FuncForPC on any returned PCs ](https://pkg.go.dev/runtime#Callers) as they can't account for inlining or return program counter adjustment. This sometimes returns the...

Why does this require the object demarshal to a `map[string]interface{}`? The bytes could equally well contain any valid json (arrays, strings, and so on). ```func VerifyJSONBytes(t Failable, bs []byte, opts...