Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
b94e0479
"...daily-thought-app.git" did not exist on "ac56e9b3d6ff8d550ff321cd8523a807e9601cd7"
Commit
b94e0479
authored
3 years ago
by
dh00601
Browse files
Options
Downloads
Patches
Plain Diff
adding report generation script
parent
971666d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate_reports.sh
+19
-10
19 additions, 10 deletions
generate_reports.sh
with
19 additions
and
10 deletions
generate_reports.sh
+
19
−
10
View file @
b94e0479
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.sv
g
cd
../../
ding
={
realpath
binarycpython
}
echo
$din
g
## 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment