Appmon tracks API calls in Web applications that use Go.
- 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.initschema
to create the DB schema.
After running the tests with -test.initschema
, you can omit the flag on future
runs. To drop the DB schema, run go test -test.dropschema
.