mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Add doc for the possible cmd args while testing
This information could be useful for newcomers to better understand how to debug TUF. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
This commit is contained in:
parent
fdccb8dc0b
commit
cce6b7bb59
1 changed files with 20 additions and 0 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue