Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita14b3d7

Browse files
run_tests.sh is updated
run tests through pytest explicitly
1 parentae41d16 commita14b3d7

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 -atests/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)

[8]ページ先頭

©2009-2025 Movatter.jp