Track tracks user actions and API calls in Web applications that use Go and AngularJS (with Angular UI Router).
- Create the test database schema. Set the environment vars
PGHOST
,PGUSER
,PGDATABASE
, etc., so that runningpsql
alone opens a DB prompt. - Run
go test -test.initdb
After running the tests with -test.initdb
, you can omit the flag on future
runs. To drop the DB schema, run go test -test.dropdb
.