Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable Coverage Check #1015

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions script/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ check_doc_link() {
}

unit_test() {
PYTHONPATH="." pytest test/unit_tests/ --durations=20 --cov-report term-missing:skip-covered --cov-config=.coveragerc --cov-context=test --cov=evadb/ --capture=sys --tb=short -v -rsf --log-level=WARNING -m "not benchmark"
PYTHONPATH=./ pytest test/unit_tests/ --durations=20 --cov-report term-missing:skip-covered --cov-config=.coveragerc --cov-context=test --cov=evadb/ --capture=sys --tb=short -v -rsf --log-level=WARNING -m "not benchmark"
code=$?
print_error_code $code "UNIT TEST"
}

short_integration_test() {
PYTHONPATH=./ python -m pytest test/integration_tests/short/ -p no:cov -m "not benchmark"
PYTHONPATH=./ pytest test/integration_tests/short/ --durations=20 --cov-report term-missing:skip-covered --cov-config=.coveragerc --cov-context=test --cov=evadb/ --capture=sys --tb=short -v -rsf --log-level=WARNING -m "not benchmark"
code=$?
print_error_code $code "SHORT INTEGRATION TEST"
}
Expand Down Expand Up @@ -203,8 +203,7 @@ fi
## based on Python version
##################################################

if [[ ( "$PYTHON_VERSION" = "3.10" ) &&
( "$MODE" = "FULL" ) ]];
if [[ ( "$PYTHON_VERSION" = "3.10" ) ]]
then
echo "UPLOADING COVERAGE REPORT"
coveralls
Expand Down