Skip to content

Commit

Permalink
add possibility to limit multithreaded test run
Browse files Browse the repository at this point in the history
  • Loading branch information
menkej committed Jan 15, 2021
1 parent 6c2a7e7 commit 5af62aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

if [ $# -gt 0 ] ; then
numprocesses=$1
else
numprocesses='auto'
fi
CURRENT_DIR=$(dirname "$0")
ROOT_DIR="$(realpath $(dirname "$0")/..)"

echo "Running tests with Python 3... (HTML coverage report)"
cd $ROOT_DIR
python3 -m pytest --cov=icloudpd --cov-report html --cov-report term-missing --numprocesses auto
python3 -m pytest --cov=icloudpd --cov-report html --cov-report term-missing --numprocesses $numprocesses

0 comments on commit 5af62aa

Please sign in to comment.