add coverage

This commit is contained in:
Mike Kinney
2021-12-01 10:34:48 -08:00
parent e7e094a14c
commit ef811b5f7b
4 changed files with 7 additions and 2 deletions

View File

@@ -24,4 +24,4 @@ jobs:
- name: Run pylint
run: pylint --exit-zero meshtastic
- name: Run tests with pytest
run: pytest
run: pytest --cov=meshtastic

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ log_*
.eggs
nanopb-0.4.4
.*swp
.coverage

View File

@@ -158,7 +158,7 @@ If you need to build a new release you'll need:
```
apt install pandoc
sudo pip3 install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest
sudo pip3 install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest pytest-cov
```
For development, you will probably want to run:
@@ -182,3 +182,4 @@ Possible options for testing:
* to run just unit tests: pytest -munit
* to run just integration tests: pytest -mint
* if you want to add another classification of tests, then look in pytest.ini
* if you want to see the unit test code coverage: pytest --cov=meshtastic

View File

@@ -5,6 +5,7 @@ bleach==4.1.0
certifi==2021.10.8
charset-normalizer==2.0.8
colorama==0.4.4
coverage==6.2
docutils==0.18.1
dotmap==1.3.25
enum-compat==0.0.3
@@ -36,6 +37,7 @@ Pypubsub==4.0.3
PyQRCode==1.2.1
pyserial==3.5
pytest==6.2.5
pytest-cov==3.0.0
readme-renderer==30.0
requests==2.26.0
requests-toolbelt==0.9.1
@@ -44,6 +46,7 @@ six==1.16.0
tabulate==0.8.9
timeago==1.0.15
toml==0.10.2
tomli==1.2.2
tqdm==4.62.3
twine==3.7.0
typing_extensions==4.0.1