Skip to content

Commit a0854d8

Browse files
author
Niels Søholm
committed
Make tests run locally
1 parent 6c28ffc commit a0854d8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ e.g:
3333
const keyv = new Keyv('postgresql://user:pass@localhost:5432/dbname', { table: 'cache' });
3434
```
3535

36+
## Test prerequisites
37+
Local Postgres instance using included docker-compose configuration:
38+
```
39+
docker-compose up
40+
```
41+
3642
## License
3743

3844
MIT © Luke Childs

docker-compose.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Docker compose configuration that allows integration tests to be run
2+
postgres:
3+
image: postgres:9.5
4+
ports:
5+
- 5432:5432
6+
environment:
7+
- POSTGRES_USER=postgres
8+
- POSTGRES_DB=keyv_test
9+
# Increased max_connections and shared_buffer counts
10+
command:
11+
postgres -N 150 -B 300

0 commit comments

Comments
 (0)