Skip to content

Commit

Permalink
Fix running of test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jan 28, 2021
1 parent e6c8473 commit 6571718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ test()

local SOURCES_DIR="${PYPI_PROJECT_ROOT}/src"
local TESTS_DIR="${PYPI_PROJECT_ROOT}/test"
local TEST_COVERAGE_PATTERN_SOURCES="*/compiler.py"
python -m coverage run --include=${TEST_COVERAGE_PATTERN_SOURCES} -m unittest discover -s "${TESTS_DIR}" -v
local TEST_COVERAGE_PATTERN_SOURCES="*compiler.py"
python -m coverage run --include="${TEST_COVERAGE_PATTERN_SOURCES}" --omit="*test_*" -m unittest discover \
-s "${TESTS_DIR}" -v
local PYTHON_RESULT=$?
if [ ${PYTHON_RESULT} -ne 0 ] ; then
stderr_echo "Running PyPi tests failed with return code ${PYTHON_RESULT}!"
Expand Down

0 comments on commit 6571718

Please sign in to comment.