From 3fb96709c55732c801fed9abf32dad24c1090887 Mon Sep 17 00:00:00 2001 From: Andrew Heuermann Date: Wed, 16 Nov 2016 22:30:02 -0600 Subject: [PATCH] Added section on running tests --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index fd261a43..cd7d36c4 100644 --- a/README.md +++ b/README.md @@ -767,6 +767,19 @@ If you find an issue you want to work on please comment on it letting other peop If want to work on an issue but dont know where to start just leave a comment and I'll be more than happy to point you in the right direction. +### Running tests +The test suite requires a postgres and mysql database. You can override the mysql/postgres connection strings with the [`MYSQL_URI` and `PG_URI` environment variables](https://github.com/doug-martin/goqu/blob/2fe3349/docker-compose.yml#L26)* + +```sh +go test -v -race ./... +``` + +You can also run the tests in a container using [docker-compose](https://docs.docker.com/compose/). + +```sh +GO_VERSION=latest docker-compose run goqu +``` + ## License `goqu` is released under the [MIT License](http://www.opensource.org/licenses/MIT).