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

Related