Skip to content

Commit 6d50c5b

Browse files
committed
readme for tests
1 parent 17fb170 commit 6d50c5b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### How do I run tests?
2+
3+
#### Simple
4+
5+
```bash
6+
# Setup virtualenv
7+
virtualenv venv
8+
source venv/bin/activate
9+
10+
# Install local version of testgres
11+
pip install -U .
12+
13+
# Set path to PostgreSQL
14+
export PG_BIN=/path/to/pg/bin
15+
16+
# Run tests
17+
./tests/test_simple.py
18+
```
19+
20+
#### All configurations + coverage
21+
22+
```bash
23+
# Set path to PostgreSQL and python version
24+
export PATH=$PATH:/path/to/pg/bin
25+
export PYTHON=3 (or 2)
26+
27+
# Run tests
28+
./run_tests.sh
29+
```

0 commit comments

Comments
 (0)