gotests

command module
v0.0.0-...-85e6182 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 17 Imported by: 0

README

[Archived] gotests

This project is no longer maintained. Use https://github.com/cweill/gotests for the similar purpose.

Documentation

Overview

gotests is tool to generate Go test functions from the given source code.

https://github.com/tcnksm/gotests

Usage:

gotests [options] PATH ...

Options:

-diff, -d      Display diffs instead of rewriting files.

-write, -w     Write result to target file instead of stdout.
               For example, if source file name is 'A.go',
               target file will be 'A_test.go'.

-list, -l      List test files to be updated/generated.

-i             Include unexport function/method for generating target.

-reverse, -r   (experimental) Allow to provide test file instead of source file.
               By default, gotests expects source file PATH provided.
               With this flag, the test file can be given.
               For example, you can provide 'A_test.go' instead of 'A.go'.
               This flag is useful for editor integration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL