Skip to content
/ rerun Public
forked from skelterjohn/rerun

Will autobuild and kill/relaunch the target when you update the code.

License

Notifications You must be signed in to change notification settings

jurij/rerun

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use like rerun github.com/skelterjohn/go.uik/uiktest

Usage: rerun [--test] [--build] [--race] [--no-run] <import path> [arg]*

For any go executable in a normal GOPATH workspace, rerun will watch its source, rebuild, retest, and rerun. As long as go install <import path> works, rerun will be able to find it.

Along with the target's source, rerun also watches the source of all the target's non-GOROOT dependencies.

When using flag --test, rerun executes go test. If tests fail, rerun will not continue to build and/or run the program.

Flag --build makes rerun execute go build in the local folder, creating a executable.

Flag --no-run omits actually running the program. This is useful if you only wish to test and/or build.

Flag --race will test/build/run the program with race detection enabled.

Examples

relative import path

Directory Structure:

├── /go/src/github.com/
│   ├── user
│   │   ├── repo
│   │   ├── another_repo

/go/src/github.com/user/repo> rerun github.com/user/repo

/go/src/github.com/user/repo> rerun .

/go/src/github.com/user/repo> rerun ../another_repo

About

Will autobuild and kill/relaunch the target when you update the code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%