Skip to content

Commit

Permalink
added code coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
KKGanguly committed Aug 30, 2024
1 parent 048da78 commit 0dd7806
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
Binary file added .coverage
Binary file not shown.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
![Static Badge](https://img.shields.io/badge/language-python-3670A0?style=for-the-badge&logo=python) ![Static Badge](https://img.shields.io/badge/Platform-Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)
<a href="https://www.gnu.org/licenses/gpl-3.0"><img alt="License: GPL v3" src="https://img.shields.io/badge/License-GPLv3-blue.svg" height="30px"></a>

[![Python application](https://github.com/TeamBenign/HW1/actions/workflows/python-app.yml/badge.svg)](https://github.com/TeamBenign/HW1/actions/workflows/python-app.yml)
[![Python application](https://github.com/TeamBenign/HW1/actions/workflows/python-app.yml/badge.svg)](https://github.com/TeamBenign/HW1/actions/workflows/python-app.yml)
[![Coverage Status](coverage-badge.svg?dummy=8484744)](htmlcov/index.html)
1 change: 1 addition & 0 deletions coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" ?>
<coverage version="7.6.1" timestamp="1724985917202" lines-valid="20" lines-covered="20" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.6.1 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/workspaces/HW1</source>
</sources>
<packages>
<package name="." line-rate="1" branch-rate="0" complexity="0">
<classes>
<class name="calculator.py" filename="calculator.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
</lines>
</class>
<class name="calculator_test.py" filename="calculator_test.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="7" hits="1"/>
<line number="11" hits="1"/>
<line number="12" hits="1"/>
<line number="13" hits="1"/>
<line number="15" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="1"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>

0 comments on commit 0dd7806

Please sign in to comment.