gotestyourself / gotestyourself/gotest.tools

How to compare multi-line strings with unpredictable values?

Open
#8 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
576
Forks
54
Avg merge
6d 3h
Merged PRs (30d)
2

Description

Ex: The stdout of `docker build` includes ids that will change.

`golden` expects exact values, but maybe we could support some way of templating things so that it can assert the actual result matches a template/pattern. This could be in a different package, or just a different assertions (`AssertPattern()` or something).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.