Muestra los resultados de la prueba de Python en forma agradable y tabular.
Estoy escribiendo una herramienta Pythonic que valida la corrección de un determinado sistema. Cada validación se escribe como un Pythonunittest
, y el informe se ve como:
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
En mi opinión, este formato es difícil de leer, especialmente para los no pitonistas. ¿Existe algún generador de informes que pueda generar un informe en forma agradable y tabular, por ejemplo:
+----------------------------------------------------------------+-----------+
| 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 |
+----------------------------------------------------------------+-----------+
Aclaración El conjunto de pruebas se ejecuta en un terminal remoto, por lo que prefiero las herramientas de informes de línea de comandos.