gotestyourself

package module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 0 Imported by: 1

README

Go Test Yourself

A collection of packages compatible with go test to support common testing patterns.

GoDoc CircleCI Go Reportcard

Packages

  • assert - compare values and fail the test when the comparison fails
  • env - test code that uses environment variables
  • fs - create test files and compare directories structures
  • golden - compare large multi-line strings
  • icmd - execute binaries and test the output
  • poll - test asynchronous code by polling until a desired state is reached
  • skip - skip tests based on conditions

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package assert provides assertions for comparing expected values to actual values.
Package assert provides assertions for comparing expected values to actual values.
cmd/gty-migrate-from-testify
Command gty-migrate-from-testify migrates packages from testify/assert and testify/require to gotestyourself/assert.
Command gty-migrate-from-testify migrates packages from testify/assert and testify/require to gotestyourself/assert.
cmp
Package cmp provides Comparisons for Assert and Check
Package cmp provides Comparisons for Assert and Check
opt
Package opt provides common go-cmp.Options for use with assert.DeepEqual.
Package opt provides common go-cmp.Options for use with assert.DeepEqual.
Package env provides functions to test code that read environment variables or the current working directory.
Package env provides functions to test code that read environment variables or the current working directory.
Package fs provides tools for creating temporary files, and testing the contents and structure of a directory.
Package fs provides tools for creating temporary files, and testing the contents and structure of a directory.
Package golden provides tools for comparing large mutli-line strings.
Package golden provides tools for comparing large mutli-line strings.
gotestsum module
Package icmd executes binaries and provides convenient assertions for testing the results.
Package icmd executes binaries and provides convenient assertions for testing the results.
internal
difflib
Package difflib is a partial port of Python difflib module.
Package difflib is a partial port of Python difflib module.
Package poll provides tools for testing asynchronous code.
Package poll provides tools for testing asynchronous code.
Package skip provides functions for skipping based on a condition.
Package skip provides functions for skipping based on a condition.
Package testsum is DEPRECATED.
Package testsum is DEPRECATED.
cmd
x
Package x is a namespace for other packages.
Package x is a namespace for other packages.
subtest
Package subtest provides a TestContext to subtests which handles cleanup, and provides a testing.TB, and context.Context.
Package subtest provides a TestContext to subtests which handles cleanup, and provides a testing.TB, and context.Context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL