Skip to content

Comcast/goint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages