gotests

command
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

A commandline tool for generating table-driven Go tests.

This tool can generate tests for specific Go source files or an entire directory. By default, it prints its output to stdout.

Usage:

$ gotests [options] PATH ...

Available options:

-all         generate tests for all functions and methods

-excl        regexp. generate tests for functions and methods that don't
             match. Takes precedence over -only, -exported, and -all

-exported    generate tests for exported functions and methods. Takes
             precedence over -only and -all

-i           print test inputs in error messages

-only        regexp. generate tests for functions and methods that match only.
             Takes precedence over -all

-nosubtests  disable subtest generation when >= Go 1.7

-w           write output to (test) files instead of stdout

Directories

Path Synopsis
Package process is a thin wrapper around the gotests library.
Package process is a thin wrapper around the gotests library.

Jump to

Keyboard shortcuts

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