Skip to content

Commit

Permalink
update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Mar 14, 2023
1 parent bf2bf3c commit a3efc99
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
wheel
nose
pytest
pytest-cov
parameterized
twine
coverage
codecov
Expand Down
2 changes: 1 addition & 1 deletion test/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo %PIPINSTALL%
cd test
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
set PYTHONPATH=%root%\src
%PYTHON% -m nose -d -v --with-id --nocapture --with-coverage --cover-erase --cover-package=..\src --cover-branches %*
%PYTHON% -m pytest --cov=..\src --cov-reset %*
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

exit /b %ERRORLEVEL%
6 changes: 1 addition & 5 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ set -e

root=$(cd $(dirname $0)/.. ; pwd)
PY=${PYTHON:-python3}
PIP=${PIP:-pip3}
PIP_INSTALL=${PIP_INSTALL:-pip install}

# run the cmany unit tests
cd $root/test
export PYTHONPATH=$root/src
$PY -m nose -d -v --with-id --nocapture \
--with-coverage --cover-erase --cover-package=../src --cover-branches \
$*
$PY -m pytest --cov=../src --cov-reset $*

exit $?
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a3efc99

Please sign in to comment.