From 209e736fc4e7a4f42aea18dddad7b381f469d609 Mon Sep 17 00:00:00 2001 From: xzdandy Date: Thu, 31 Aug 2023 03:32:03 -0400 Subject: [PATCH 1/2] Enable Coverage --- script/test/test.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/test/test.sh b/script/test/test.sh index bffd728f06..c12327fd27 100644 --- a/script/test/test.sh +++ b/script/test/test.sh @@ -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 From feac038f5543d5fe448546895beafb1a2b0211ea Mon Sep 17 00:00:00 2001 From: xzdandy Date: Thu, 31 Aug 2023 03:38:55 -0400 Subject: [PATCH 2/2] Enable coverage from short integration test --- script/test/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/test/test.sh b/script/test/test.sh index c12327fd27..f5009b5096 100644 --- a/script/test/test.sh +++ b/script/test/test.sh @@ -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" }