You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github.com/gotestyourself/gotestyourself moved to gotest.tools with
version 2.0.0. Moving to that one, bumping it to v2.1.0.
Signed-off-by: Vincent Demeester <[email protected]>
skip a test and print the source code of the condition used to skip the test
26
+
27
+
## Related
28
+
29
+
*[gotest.tools/gotestsum](https://github.com/gotestyourself/gotestsum) - go test runner with custom output
30
+
*[maxbrunsfeld/counterfeiter](https://github.com/maxbrunsfeld/counterfeiter) - generate fakes for interfaces
31
+
*[jonboulle/clockwork](https://github.com/jonboulle/clockwork) - a fake clock for testing code that uses `time`
many common comparisons. Additional comparisons can be written to compare
54
-
values in other ways.
54
+
values in other ways. See the example Assert (CustomComparison).
55
55
56
-
Below is an example of a custom comparison using a regex pattern:
56
+
Automated migration from testify
57
+
58
+
gty-migrate-from-testify is a binary which can update source code which uses
59
+
testify assertions to use the assertions provided by this package.
60
+
61
+
See http://bit.do/cmd-gty-migrate-from-testify.
// DeepEqual uses google/go-cmp (http://bit.do/go-cmp) to assert two values are
264
+
// equal and fails the test if they are not equal.
265
+
//
266
+
// Package https://godoc.org/gotest.tools/assert/opt provides some additional
267
+
// commonly used Options.
268
+
//
269
+
// This is equivalent to Assert(t, cmp.DeepEqual(x, y)).
0 commit comments