diff --git a/ci/test_python.sh b/ci/test_python.sh index f0d878a87f8..76041899c43 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -118,8 +118,11 @@ echo "nx-cugraph coverage from networkx tests: $_coverage" echo $_coverage | awk '{ if ($NF == "0.0%") exit 1 }' # Ensure all algorithms were called by comparing covered lines to function lines. # Run our tests again (they're fast enough) to add their coverage, then create coverage.json -pytest --cov=nx_cugraph --cov-append --cov-report= -coverage json +coverage report +coverage report --data-file=.coverage +pytest --cov=nx_cugraph --cov-append --data-file=.coverage +coverage json --data-file=.coverage +cat coverage.json python nx_cugraph/tests/ensure_algos_covered.py popd diff --git a/python/nx-cugraph/run_nx_tests.sh b/python/nx-cugraph/run_nx_tests.sh index 936af75e53b..b0bed6741f9 100755 --- a/python/nx-cugraph/run_nx_tests.sh +++ b/python/nx-cugraph/run_nx_tests.sh @@ -31,6 +31,5 @@ NETWORKX_FALLBACK_TO_NX=True \ pytest \ --pyargs networkx \ --cov=nx_cugraph \ - --cov-report= \ "$@" -coverage report --include="nx_cugraph/algorithms/*" --omit=__init__.py --show-missing +coverage report --include="nx_cugraph/algorithms/*" --omit=__init__.py --show-missing --data-file=.coverage