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

updated test coverage script

parent d71cdc7c
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
</clipPath> </clipPath>
<g clip-path="url(#r)"> <g clip-path="url(#r)">
<rect width="99" height="20" fill="#555"/> <rect width="99" height="20" fill="#555"/>
<rect x="99" width="43" height="20" fill="#4c1"/> <rect x="99" width="43" height="20" fill="#97CA00"/>
<rect width="142" height="20" fill="url(#s)"/> <rect width="142" height="20" fill="url(#s)"/>
</g> </g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="110"> <g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="110">
<text x="505" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="890">docstr-coverage</text> <text x="505" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="890">docstr-coverage</text>
<text x="505" y="140" transform="scale(.1)" textLength="890">docstr-coverage</text> <text x="505" y="140" transform="scale(.1)" textLength="890">docstr-coverage</text>
<text x="1195" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">100%</text> <text x="1195" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">91%</text>
<text x="1195" y="140" transform="scale(.1)">100%</text> <text x="1195" y="140" transform="scale(.1)">91%</text>
</g> </g>
</svg> </svg>
\ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text> <text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="31.5" y="14">coverage</text> <text x="31.5" y="14">coverage</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">71%</text> <text x="80" y="15" fill="#010101" fill-opacity=".3">69%</text>
<text x="80" y="14">71%</text> <text x="80" y="14">69%</text>
</g> </g>
</svg> </svg>
#!/bin/bash #!/bin/bash
# Script to generate the docs # Script to generate the docs
#
NAME_CURRENT_FILE="`realpath \"$0\"`" NAME_CURRENT_FILE="`realpath \"$0\"`"
DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE) DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE)
DIRNAME_PROJECT_ROOT=$(dirname $DIRNAME_CURRENT_FILE) DIRNAME_PROJECT_ROOT=$(dirname $DIRNAME_CURRENT_FILE)
DOCS_DIR="$DIRNAME_PROJECT_ROOT/docs/"
#
DOCS_DIR="$DIRNAME_PROJECT_ROOT/docs/"
#
# echo "$NAME_CURRENT_FILE" # echo "$NAME_CURRENT_FILE"
# echo "$DIRNAME_CURRENT_FILE" # echo "$DIRNAME_CURRENT_FILE"
# echo "$DIRNAME_PROJECT_ROOT" # echo "$DIRNAME_PROJECT_ROOT"
......
#!/bin/bash #!/bin/bash
# Script to generate the docstring coverage # Script to generate the docstring coverage
#
NAME_CURRENT_FILE="`realpath \"$0\"`" NAME_CURRENT_FILE="`realpath \"$0\"`"
DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE) DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE)
TESTS_DIR="$DIRNAME_CURRENT_FILE/binarycpython/tests" DIRNAME_PROJECT_ROOT=$(dirname $DIRNAME_CURRENT_FILE)
REPORTS_DIR="$DIRNAME_CURRENT_FILE/reports"
BADGE_DIR="$DIRNAME_CURRENT_FILE/badges"
# #
TESTS_DIR="$DIRNAME_PROJECT_ROOT/binarycpython/tests"
REPORTS_DIR="$DIRNAME_PROJECT_ROOT/reports"
BADGE_DIR="$DIRNAME_PROJECT_ROOT/badges"
# echo "$NAME_CURRENT_FILE" # echo "$NAME_CURRENT_FILE"
# echo "$DIRNAME_CURRENT_FILE" # echo "$DIRNAME_CURRENT_FILE"
# echo "$DIRNAME_PROJECT_ROOT"
# echo "$TESTS_DIR" # echo "$TESTS_DIR"
# echo "$REPORTS_DIR" # echo "$REPORTS_DIR"
# echo "$BADGE_DIR" # echo "$BADGE_DIR"
...@@ -39,6 +44,6 @@ cd $TEST_COV_DIR ...@@ -39,6 +44,6 @@ cd $TEST_COV_DIR
coverage run --source=binarycpython "$TESTS_DIR/main.py" coverage run --source=binarycpython "$TESTS_DIR/main.py"
coverage html coverage html
coverage-badge > "$TEST_COV_DIR/test_coverage.svg" coverage-badge > "$TEST_COV_DIR/test_coverage.svg"
cd $DIRNAME_CURRENT_FILE cd $DIRNAME_PROJECT_ROOT
cp "$TEST_COV_DIR/test_coverage.svg" "$BADGE_DIR/test_coverage.svg" cp "$TEST_COV_DIR/test_coverage.svg" "$BADGE_DIR/test_coverage.svg"
echo "Done" 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