add coverage, MAKEFILE for tests, and clean-up test style · layeddie/note-python@59d5500 · GitHub
Skip to content

Commit 59d5500

Browse files
committed
add coverage, MAKEFILE for tests, and clean-up test style
1 parent 9c2c868 commit 59d5500

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion

MAKEFILE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test:
2+
flake8 test/ notecard/ example/ --count --ignore=E722,F401,F403,W503 --show-source --statistics
3+
pytest test --cov=notecard
4+
5+
coverage:
6+
pytest test --doctest-modules --junitxml=junit/test-results.xml --cov=notecard --cov-report=xml --cov-report=html

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ pyserial==3.4
44
python-periphery==2.0.1
55
PyYAML==5.3.1
66
flake8==3.8.3
7-
pytest==5.4.3
7+
pytest==5.4.3
8+
pytest-cov==2.8.1

test/test_notecard.py

Lines changed: 8 additions & 6 deletions

0 commit comments

Comments
 (0)