Update coverage instructions and badge

This commit is contained in:
sigma67 2020-05-18 16:42:03 +02:00
commit 7ee10c2c92
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 15 additions and 9 deletions

View file

@ -11,12 +11,18 @@ Adjust the file to contain appropriate information for your YouTube account and
Coverage badge
--------------
Install ``coverage`` and ``coverage-badge`` with pip. Run
Make sure you installed the dev requirements as explained in `CONTRIBUTING.rst <https://github.com/sigma67/ytmusicapi/blob/master/CONTRIBUTING.rst>`_. Run
``coverage run --source=ytmusicapi -m unittest discover tests``
.. code-block:: bash
to generate a coverage report in the project root. With
cd tests
coverage run --source=../ytmusicapi -m unittest test.py
``coverage-badge -o tests/coverage.svg -f``
to generate a coverage report. With
.. code-block:: bash
coverage-badge -o coverage.svg -f
you generate the badge.