-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
downstream of #2973 |
@@ -18,9 +18,9 @@ WORKSPACE=${SCRIPT_DIR}/.. | |||
|
|||
unset PYTHONPATH | |||
|
|||
cd $WORKSPACE | |||
cd "$WORKSPACE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "$WORKSPACE"
the same as ${WORKSPACE}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the quotes are intentional. https://github.com/koalaman/shellcheck/wiki/SC2086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you use this tool called shellcheck
along with pre-commit
.
scripts/run_python_test.sh
Outdated
echo $cmd | ||
cmd="${cmd} ${PYTEST_EXECUTABLE} --cov -v $PYTHONPATH/turicreate/test \ | ||
--junit-xml=alltests.pytest.xml" | ||
echo "$cmd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want to remove this echo
. Especially since set -x
is included at the top of the script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right! will do.
pass internal tests. |
add pytest-cov plugin to generate the report for the test coverage for our python source file. This test coverage doesn't cover C++ implementation code.
Sample output.