Merge pull request #1151 from MVrachev/testing-doc

Add doc for the possible cmd args while testing
This commit is contained in:
Joshua Lock 2020-10-01 21:58:11 +01:00 committed by GitHub
commit 461663f363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,26 @@ increase log level up to DEBUG ('-vvvv').
$ python test_updater.py -vvvv TestUpdater.test_4_refresh # run test with DEBUG log level
All of the log levels and the corresponding options that could be used for testing are:
.. list-table::
:widths: 20 25
:header-rows: 1
* - Option
- Log Level
* - default (no argument passed)
- ERROR (test names are not printed)
* - `-v`
- ERROR (test names are printed at this level and above)
* - `-vv`
- WARNING
* - `-vvv`
- INFO
* - `-vvvv`
- DEBUG
To run the tests and measure their code coverage, the aggregation script can be
invoked with the ``coverage`` tool (requires installation of ``coverage``, e.g.
via PyPI).