Skip to content

A tiny package to reduce testing boilerplate in Go

License

Notifications You must be signed in to change notification settings

Isnor/testtable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Table

A library to help accelerate and maintain testing

Motivation

Table-driven tests are a well-defined pattern in Golang, but it often results in a lot of duplicated boiler plate code for defining the test definition and running the tests.

Goals

Ultimately, the hope for this library is that the programmer can just write the tests: "this is how I expect my function to behave given this input".

Design

testtable is a very small package intended to make it easier to quickly produce and write tests that can be easily refactored. It doesn't provide functionality - it's intended to be built upon by implementing the testtable.Run function.

About

A tiny package to reduce testing boilerplate in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published