gotestor

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 9 Imported by: 0

README

goreleaser

gotestor

Simple tool to continously run golang unit tests.

install

Either build and install it directly via

go install github.com/eqinox76/gotestor

and make sure the $GOROOT/bin or $GOTOOLDIR directory is in your path.

Or use the prebuild executables.

usage

Navigate to your code directory and start gotestor it will immediatly run all lcoal unit tests and start listening for file changes.

gotestor
2020/12/24 15:04:30 running  /snap/bin/go test
?   	github.com/eqinox76/gotestor	[no test files]
2020/12/24 15:04:53 running  /snap/bin/go test
?   	github.com/eqinox76/gotestor	[no test files]

You can pass the usual go test parameters directly

gotestor -count=1 -failfast

intention

This tool supports my personal workflow of changing code and running all unit tests immediatly. It is a very ligth wrapper around the go test tool and only adds the automatic run if any source files changes. All parameters are forwarded.

alternatives

There are several ways to solve this issue with other tools. Starting from simple bash loops up to sophisticated npm packages.

thanks

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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