Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 844 Bytes

testing.md

File metadata and controls

29 lines (20 loc) · 844 Bytes

Audit Star tests use seprate configuration and db migration

Usage

Install pgmgr

go get github.com/rnubel/pgmgr

Resetting DB and Run migration

pgmgr db drop || true
pgmgr db create
pgmgr db migrate

Run tests

go test ./...

Note:

Since the purpose of audit_star is to audit a database, in order to test this functionality, the provided tests create a test database by running the migration contained within the db/migrate folder. The migration was created and is run using the pgmgr Go migration tool. So while pgmgr is a dependency for the tests, it is not of dependency of audit_star itself.