G.A.T. is a development tool for the Go Programming Language. It automatically runs your tests and hot compiles your code when it detects file system changes.
This is an early alpha. There is still quite a lot to do (Hot Compiles, Growl notifications, and interactions for profiling, benchmarking, etc.). Also, it has only been tested on Mac OS X 10.8.
See the public Trello board for the Roadmap.
If you are on OS X, you need to first install GNU Readline via Homebrew:
$ brew install readline
To install G.A.T., or to update your installation, run:
$ go get -u github.com/gophertown/gat
Then run gat
in your project folder:
$ gat
G.A.T.0.1.0 is now watching your files
Type help for help.
Watching path ./
By convention, Go code has a counterpart test file in the same folder. When G.A.T. detects a change to your production code or the test itself, it will run the appropriate test.
If you have a suite_test.go
in the same folder, G.A.T. will include it in every test run. Use it for a Suite definition (Gocheck, PrettyTest), additional Checkers, or other testing helpers.
...to be determined...
a
,all
,↩
: Run all tests.h
,help
: Show help.e
,exit
: Quit G.A.T.
Inspired by Andrea Fazzi's PrettyAutoTest and devweb by Russ Cox. The name is inspired by shotgun, the reloading rack development server for Ruby. Special thanks to Chris Howey for the fsnotify package.