From 51e257371421f56a9a1e1f56886aa8961f4121c8 Mon Sep 17 00:00:00 2001 From: Joe Paul Date: Mon, 5 Nov 2018 12:34:31 +0530 Subject: [PATCH] docs: Add test command to README.md --- .gitignore | 1 + README.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index e1465b1..3dd02d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .goreleaser.yml +config_test.toml diff --git a/README.md b/README.md index 56ebd1c..4872c79 100644 --- a/README.md +++ b/README.md @@ -162,5 +162,17 @@ $ curl localhost:6060/tasks/get_profit_entries_by_date/jobs -H "Content-Type: ap $ curl localhost:6060/tasks/get_profit_entries_by_date/jobs -H "Content-Type: application/json" --data '{"job_id": "myjob", "queue": "low_priority"}' ``` +## Running tests locally + +Copy test config. +```shell +cp ./.circleci/config.toml ./config_test.toml +``` + +Modify config file so that database dsn(s), redis addresses matches local setup. +```shell +go test -v ./... --config ./config_test.toml +``` + ## License Licensed under the MIT License.