Skip to content
Snippets Groups Projects
Commit b94e0479 authored by dh00601's avatar dh00601
Browse files

adding report generation script

parent 971666d5
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment