No description, website, or topics provided.
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CLA.pdf
CONTRIBUTING.md
LICENSE
NOTICE
README.md
goint.go
goint_test.go

README.md

Integration testing in Go

goint is an integration testing framework written in Go. It was written for use in applications developed in Go. While the implementation of an integration test using the framework must be written in Go, much of the functionality can be used for applications written in other languages as well. Some of the functionality could be used in contexts other than integration testing (e.g., verifying deployments or health checks).

Features

goint implements several capabilities which can be called verbs. goint supports the following verbs:

  1. Exec - executes an arbitrary process. This can be anything that can be launched from a shell command line. One field in the Exec struct is Token which can be referenced in the Kill and Wait verbs.
  2. Kill - used to kill an Exec'd process. The process to be killed is identified by the Token field value in the corresponding Exec definition.
  3. Delay - does just that, it delays for a given amount of time and then continues
  4. Wait - waits for a process Exec'd with the matching Token value to exit
  5. Curl - will run an aribtrary curl request
  6. DelayHealthCheck - pings an arbitrary URL for a given number of times waiting a given number of sections between polls. It will complete with either an error or success.
  7. GoFunc - will run an arbitrary Go function.
  8. Comp - combines an arbitrary set of the above verbs into a composite action. Comp verbs can be nested to create arbitrarily complex hierarchies of arbitrarily complex steps.

Examples

See goint_test.go.