Skip to content

Commit

Permalink
Merge pull request #2 from joeirimpan/tests
Browse files Browse the repository at this point in the history
docs: Add test command to README.md
  • Loading branch information
knadh committed Nov 5, 2018
2 parents c97691d + 51e2573 commit 4cd4a52
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 4cd4a52

Please sign in to comment.