Skip to content

Commit

Permalink
docs: Add test command to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joeirimpan committed Nov 5, 2018
1 parent c97691d commit 51e2573
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.goreleaser.yml
config_test.toml
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 51e2573

Please sign in to comment.