-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for pull request comments from andy
- Loading branch information
SCHREIBER Martin
committed
Nov 15, 2024
1 parent
fa5b311
commit e5cf0db
Showing
4 changed files
with
86 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Hint: For vscode | ||
# | ||
# Install the extension `coverage-gutters` and execute the command "Coverage Gutters: Display Coverage" | ||
# | ||
|
||
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
cd "$SCRIPTPATH/.." | ||
|
||
PSYCLONE_MODULE="psyclone" | ||
if [[ ! -z $1 ]]; then | ||
PSYCLONE_MODULE=$1 | ||
fi | ||
|
||
SRC_DIR="src/psyclone/tests" | ||
if [[ ! -z $2 ]]; then | ||
SRC_DIR=$2 | ||
fi | ||
|
||
COV_REPORT="xml:cov.xml" | ||
|
||
# Additional options | ||
# Also write to Terminal | ||
#OPTS=" --cov-report term" | ||
|
||
#echo "Running 'pytest --cov $PSYCLONE_MODULE --cov-report term-missing -n $(nproc) $SRC_DIR'" | ||
#pytest --cov $PSYCLONE_MODULE -v --cov-report term-missing -n $(nproc) $SRC_DIR | ||
echo "Running 'pytest --cov $PSYCLONE_MODULE --cov-report $COV_REPORT -n $(nproc) $SRC_DIR'" | ||
pytest --cov $PSYCLONE_MODULE -v --cov-report $COV_REPORT $OPTS -n $(nproc) $SRC_DIR | ||
|