diff --git a/generate_reports.sh b/generate_reports.sh index 9a2e3f29b295c25cdf5c999d6e9143f9f03f7ed2..e60f4cf84c31b0e20e9edb191abb020dd23b33f8 100644 --- a/generate_reports.sh +++ b/generate_reports.sh @@ -1,13 +1,22 @@ -docstr-coverage binary_c-python/binarycpython --exclude="/home/david/projects/binary_c_root/binarycpython_dev/binary_c-python/binarycpython/tests/*" -v 3 --badge reports/docstring_coverage/docstring_coverage.svg > reports/docstring_coverage/docstring_coverage.txt 2>&1 +#!/bin/bash -# Go down to the dir -cd reports/test_coverage && coverage run --source=binarycpython ../../binary_c-python/binarycpython/tests/main.py && coverage-badge > test_coverage.svg -cd ../../ +ding={realpath binarycpython} +echo $ding +## Script to generate the docstring coverage -# Copy docstring coverage -cp reports/docstring_coverage/docstring_coverage.svg binary_c-python/badges/docstring_coverage.svg -cp reports/docstring_coverage/docstring_coverage.svg binary_c-python/docs/source/badges/docstring_coverage.svg -# Copy test coverage -cp reports/test_coverage/coverage.svg binary_c-python/badges/test_coverage.svg -cp reports/test_coverage/coverage.svg binary_c-python/docs/source/badges/test_coverage.svg + + +# docstr-coverage binarycpython --exclude="/home/david/projects/binary_c_root/binarycpython_dev/binary_c-python/binarycpython/tests/*" -v 3 --badge reports/docstring_coverage/docstring_coverage.svg > reports/docstring_coverage/docstring_coverage.txt 2>&1 + +# # Go down to the dir +# cd reports/test_coverage && coverage run --source=binarycpython ../../binary_c-python/binarycpython/tests/main.py && coverage-badge > test_coverage.svg +# cd ../../ + +# # Copy docstring coverage +# cp reports/docstring_coverage/docstring_coverage.svg binary_c-python/badges/docstring_coverage.svg +# cp reports/docstring_coverage/docstring_coverage.svg binary_c-python/docs/source/badges/docstring_coverage.svg + +# # Copy test coverage +# cp reports/test_coverage/coverage.svg binary_c-python/badges/test_coverage.svg +# cp reports/test_coverage/coverage.svg binary_c-python/docs/source/badges/test_coverage.svg