Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a14b3d7

Browse files
run_tests.sh is updated
run tests through pytest explicitly
1 parent ae41d16 commit a14b3d7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

run_tests.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export VIRTUAL_ENV_DISABLE_PROMPT=1
2222
source $VENV_PATH/bin/activate
2323

2424
# install utilities
25-
$PIP install coverage flake8 psutil Sphinx pytest
25+
$PIP install coverage flake8 psutil Sphinx pytest pytest-xdist
2626

2727
# install testgres' dependencies
2828
export PYTHONPATH=$(pwd)
@@ -38,21 +38,19 @@ rm -f $COVERAGE_FILE
3838

3939

4040
# 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"
4242

4343

4444
# run tests (PG_BIN)
4545
time \
4646
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"
4948

5049

5150
# run tests (PG_CONFIG)
5251
time \
5352
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"
5654

5755

5856
# show coverage

0 commit comments

Comments
 (0)