Skip to content

Commit

Permalink
fix source in make coverage files.
Browse files Browse the repository at this point in the history
unit test and integration test run with example only for faster debugging.
  • Loading branch information
tomerm-iguazio committed Jun 3, 2024
1 parent ba7fe3e commit e1508f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ coverage:
find tests -name '*.pyc' -exec rm {} \;
rm -rf coverage_reports;
rm -f unit_tests.coverage
COVERAGE_FILE=unit_tests.coverage coverage run --rcfile=unit_tests.coveragerc -m pytest --ignore=integration -rf -v;
COVERAGE_FILE=unit_tests.coverage coverage run --rcfile=unit_tests.coveragerc --source=. -m pytest --ignore=integration -rf -v;
coverage report
coverage xml -o coverage_reports/coverage_unit_tests.xml

Expand All @@ -109,7 +109,8 @@ full-coverage-unit-tests:
find integration -name '*.pyc' -exec rm {} \;
rm -rf coverage_reports;
rm -f full_unit_tests.coverage;
COVERAGE_FILE=full_unit_tests.coverage coverage run --rcfile=integration_tests.coveragerc -m pytest --ignore=integration -rf -v;
#TODO return COVERAGE_FILE=full_unit_tests.coverage coverage run --rcfile=integration_tests.coveragerc --source=. -m pytest --ignore=integration -rf -v;
COVERAGE_FILE=full_unit_tests.coverage coverage run --rcfile=integration_tests.coveragerc --source=. -m pytest --ignore=integration -rf -v tests/test_aggregate_by_key.py::test_sliding_window_simple_aggregation_flow;
echo "coverage unit test report without excluding integration files:";
COVERAGE_FILE=full_unit_tests.coverage coverage report;

Expand All @@ -123,7 +124,7 @@ coverage-integration:
cd storey
#COVERAGE_FILE=integration.coverage coverage run --rcfile=integration_tests.coveragerc -m pytest -rf -v integration
#COVERAGE_FILE=integration.coverage coverage run --rcfile=integration_tests.coveragerc -m pytest -rf -v integration || echo "tests failed, continue" # just for fork run, TODO delete.
COVERAGE_FILE=integration.coverage coverage run --rcfile=integration_tests.coveragerc --source=. -m pytest -v integration/test_flow_integration.py || echo "tests failed, continue" # just for fork run, TODO delete.
COVERAGE_FILE=integration.coverage coverage run --rcfile=integration_tests.coveragerc --source=. -m pytest -v integration/test_flow_integration.py::test_join_with_http || echo "tests failed, continue" # just for fork run, TODO delete.
echo "coverage integration report:";
COVERAGE_FILE=integration.coverage coverage report;

Expand Down

0 comments on commit e1508f7

Please sign in to comment.