Gotests

screenshot of Gotests

Automatically generate Go test boilerplate from your source code.

Overview:

gotests is a command-line tool designed to make writing tests in Go easier. It automatically generates table driven tests based on the function and method signatures in the target source files. It also automatically imports any new dependencies in the test files.

Features:

  • Easy Test Generation: gotests generates table driven tests based on function and method signatures.
  • Automatic Dependency Import: gotests automatically imports new dependencies in the test files.
  • Command-line Interface: gotests can be used directly from the command-line.

Summary:

gotests is a convenient command-line tool for generating tests in Go. It automatically generates table driven tests and handles dependency imports, making it easier and more efficient to write tests for Go code. It is available as a command-line tool and supports various text editors and IDEs. gotests is released under the Apache 2.0 License.