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

updated script to generate the reports

parent c84cec4f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
## Script to generate the docstring coverage
# Script to generate the docstring coverage
NAME_CURRENT_FILE="`realpath \"$0\"`"
DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE)
TESTS_DIR="$DIRNAME_CURRENT_FILE/binarycpython/tests"
......@@ -12,6 +12,7 @@ BADGE_DIR="$DIRNAME_CURRENT_FILE/badges"
# echo "$DIRNAME_CURRENT_FILE"
# echo "$TESTS_DIR"
# echo "$REPORTS_DIR"
# echo "$BADGE_DIR"
# Create main reports directory
mkdir -p "$REPORTS_DIR"
......@@ -40,15 +41,4 @@ coverage html
coverage-badge > "$TEST_COV_DIR/test_coverage.svg"
cd $DIRNAME_CURRENT_FILE
cp "$TEST_COV_DIR/test_coverage.svg" "$BADGE_DIR/test_coverage.svg"
echo "Done"
# # 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/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
echo "Done"
\ No newline at end of file
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