/
View dependency graph
Depends on
- dh-golang (dh-golang)
- golang-defaults (golang-any)
- debhelper-compat
README (full)
is

Professional lightweight testing mini-framework for Go.
- Easy to write and read
- Beautifully simple API with everything you need:
is.Equal,is.True,is.NoErr, andis.Fail - Use comments to add descriptions (which show up when tests fail)
Failures are very easy to read:

Usage
The following code shows a range of useful ways you can use the helper methods:
func Test(t *testing.T) {
is := is.New(t)
signedin, err := isSignedIn(ctx)
is.NoErr(err) // isSignedIn error
is.Equal(signedin, true) // must be signed in
body := readBody(r)
is.True(strings.Contains(body, "Hi there"))
}
Color
To turn off the colors, run go test with the -nocolor flag,
or with the env var NO_COLOR (with any value).
go test -nocolor
NO_COLOR=1 go test
| dir | .github/ |
| dir | debian/ |
| dir | misc/ |
| dir | testdata/ |
| file | .gitignore |
| file | .travis.yml |
| file | LICENSE |
| file | README.md |
| file | go.mod |
| file | is-1.7.go |
| file | is-1.7_test.go |
| file | is-before-1.7.go |
| file | is.go |
| file | is_helper_test.go |
| file | is_test.go |