Skip to content

Commit

Permalink
Enable Coverage Check (#1015)
Browse files Browse the repository at this point in the history
We enable the unit test and short integration test coverage for open
PRs.
  • Loading branch information
xzdandy authored Aug 31, 2023
1 parent 66685f0 commit c02f8c3
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit c02f8c3

Please # to comment.