New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add python codecov #2976
add python codecov #2976
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.