File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export VIRTUAL_ENV_DISABLE_PROMPT=1
22
22
source $VENV_PATH /bin/activate
23
23
24
24
# install utilities
25
- $PIP install coverage flake8 psutil Sphinx pytest
25
+ $PIP install coverage flake8 psutil Sphinx pytest pytest-xdist
26
26
27
27
# install testgres' dependencies
28
28
export PYTHONPATH=$( pwd)
@@ -38,21 +38,19 @@ rm -f $COVERAGE_FILE
38
38
39
39
40
40
# run tests (PATH)
41
- time coverage run -a tests/test_simple.py
41
+ time coverage run -a -m pytest -l -v -n 2 -k " TestgresTests "
42
42
43
43
44
44
# run tests (PG_BIN)
45
45
time \
46
46
PG_BIN=$( dirname $( which pg_config) ) \
47
- ALT_CONFIG=1 \
48
- coverage run -a tests/test_simple.py
47
+ coverage run -a -m pytest -l -v -n 2 -k " TestgresTests"
49
48
50
49
51
50
# run tests (PG_CONFIG)
52
51
time \
53
52
PG_CONFIG=$( which pg_config) \
54
- ALT_CONFIG=1 \
55
- coverage run -a tests/test_simple.py
53
+ coverage run -a -m pytest -l -v -n 2 -k " TestgresTests"
56
54
57
55
58
56
# show coverage
You can’t perform that action at this time.
0 commit comments