Zeigen Sie Python unittest in netter, tabellarischer Form an

Ich schreibe ein Pythonic-Tool, das die Korrektheit eines bestimmten Systems überprüft. Jede Validierung wird als Python geschriebenunittestund der Bericht sieht so aus:

test_exclude_list_not_empty (__main__.TestRepoLists)
Assert the the exclude list is not empty ... ok
test_include_list_not_empty (__main__.TestRepoLists)
Assert the the include list is not empty ... ok
test_repo_list_not_empty (__main__.TestRepoLists)
Assert the the repo list is not empty ... ok

Meiner Meinung nach ist dieses Format schwer zu lesen, insbesondere für Nicht-Pythonisten. Gibt es einen Berichtsgenerator, der einen Bericht in einer schönen tabellarischen Form erstellen kann, z.

+----------------------------------------------------------------+-----------+
| Test                                                           |  Status   |
+----------------------------------------------------------------+-----------+
| Assert the the exclude list is not empty                       |  OK       |
| Assert the the include list is not empty                       |  OK       |
| Assert the the repo list is not empty                          |  OK       |
| All the items in the include list should be in the repo list   |  OK       |
+----------------------------------------------------------------+-----------+

Klärung Die Testsuite wird auf einem Remote-Terminal ausgeführt, daher bevorzuge ich Befehlszeilen-Berichterstellungstools.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage