Skip to content

Commit 0c124e9

Browse files
committed
Added test coverage badge and .coveragerc configuration file
1 parent 64fed31 commit 0c124e9

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.coveragerc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[run]
2+
branch = True
3+
dynamic_context = test_function
4+
; track which test functions executed which parts of the code
5+
6+
[report]
7+
exclude_also =
8+
if __name__ == .__main__.:
9+
; tests aren't directly run
10+
11+
skip_empty = True
12+
13+
[html]
14+
show_contexts = True

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![License](https://img.shields.io/github/license/Cubix1729/logicalpy)](https://github.com/Cubix1729/logicalpy/blob/master/LICENSE)
55
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
66
[![Python versions](https://img.shields.io/pypi/pyversions/logicalpy)](https://pypi.python.org/pypi/logicalpy)
7+
[![Test coverage](./docs/coverage-badge.svg)](https://github.com/Cubix1729/logicalpy/tree/master/tests)
78

89
LogicalPy is a Python library providing basic functionalities for manipulating propositional logic.
910

docs/coverage-badge.svg

Lines changed: 21 additions & 0 deletions
Loading

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![License](https://img.shields.io/github/license/Cubix1729/logicalpy)](https://github.com/Cubix1729/logicalpy/blob/master/LICENSE)
55
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
66
[![Python versions](https://img.shields.io/pypi/pyversions/logicalpy)](https://pypi.python.org/pypi/logicalpy)
7+
[![Test coverage](./coverage-badge.svg)](https://github.com/Cubix1729/logicalpy/tree/master/tests)
78

89
LogicalPy is a small Python library providing basic functionalities for manipulating propositional logic.
910

0 commit comments

Comments
 (0)