Add (some) tests to the cli tool (#22)

* Add tests to the cli tool

* add pytest-mock

* do not ignore cli.py for coverage

* read requirements_test.txt instead of redefining reqs in tox.ini

* Add upload to codecov, first try!

* fix name of the result file

* no need to manually publish to azure devops..
This commit is contained in:
Teemu R
2020-04-20 19:26:20 +02:00
committed by GitHub
parent 7f625cd1c2
commit 852ae494af
4 changed files with 129 additions and 9 deletions

View File

@@ -87,5 +87,9 @@ steps:
displayName: 'Order of imports (isort)'
- script: |
pytest --cov kasa --cov-report html
pytest --cov kasa --cov-report xml
displayName: 'Tests'
- script: |
codecov -t $(codecov.token)
displayName: Report Coverage to codecov