# run tests
# set DATABASE_URL to your test database
DATABASE_URL=postgres://Michal:@localhost/testDatabase?sslmode=disable go test -v ./...
# to run a binary you need to create .env file and put there your database credentials
# (see .env.example)
go build
./e2e-tests-example
marcmacia / e2e-tests-example Goto Github PK
View Code? Open in Web Editor NEWThis project forked from imtoo/e2e-tests-example
An example project for Golang E2E tests article https://blog.blueberry.io/end-to-end-tests-in-go-and-postgresql-40bc4884ac42