Documentation
¶
Overview ¶
Package progress draws a live progress line for an integration test run.
It writes to the controlling terminal rather than to stdout. `go test` captures the test binary's stdout and stderr, and without -v throws away everything a passing test wrote, so a progress line sent there would never be seen. Writing to /dev/tty side steps that: the line appears on screen as the run proceeds, stays out of the output when it is piped to a file, and does not need the run to be verbose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter renders the progress of a run. The zero value, and any Reporter created when there is no terminal to draw on, is a no-op.
func New ¶
New returns a Reporter drawing on the controlling terminal, or a no-op Reporter when there is not one to draw on.