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

updating the reports file and the gitignore to ignore thatthem

parent b94e0479
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ bin/ ...@@ -11,7 +11,7 @@ bin/
obj/ obj/
binarycpython_snippets binarycpython_snippets
-1.log -1.log
reports/
# Standard template # Standard template
*.org~ *.org~
*.so *.so
......
#!/bin/bash #!/bin/bash
ding={realpath binarycpython}
echo $ding
## 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/"
REPORTS_DIR="$DIRNAME_CURRENT_FILE/reports"
#
# echo "$NAME_CURRENT_FILE"
# echo "$DIRNAME_CURRENT_FILE"
# echo "$TESTS_DIR"
# echo "$REPORTS_DIR"
mkdir -p "$REPORTS_DIR"
mkdir -p "$REPORTS_DIR"
# Docstring coverage:
command -v docstr-coverage >/dev/null 2>&1 || { echo >&2 "docstr-coverage is not installed. Aborting."; exit 1; }
# 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
DOCSTRING_COV_DIR="$REPORTS_DIR/docstring_coverage"
mkdir -p "$DOCSTRING_COV_DIR/"
docstr-coverage binarycpython --exclude="$TESTS_DIR/*" -v 3 --badge "$DOCSTRING_COV_DIR/docstring_coverage.svg" > "$DOCSTRING_COV_DIR/docstring_coverage.txt" 2>&1
# # Go down to the dir # # 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 reports/test_coverage && coverage run --source=binarycpython ../../binary_c-python/binarycpython/tests/main.py && coverage-badge > 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