Piszę narzędzie Pythoniczne, które sprawdza poprawność określonego systemu. Każdy walidacja jest napisane jak Python unittest
oraz raport wygląda następująco:Wyświetlenie python unittest skutkuje ładną, tabelaryczną formą
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
Moim zdaniem, ten format jest trudne do odczytania, szczególnie dla nie-Pythonists. Czy jest jakiś generator raportów, które mogą wygenerować raport w miłym, tabelarycznej formie, np .:
+----------------------------------------------------------------+-----------+
| 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 |
+----------------------------------------------------------------+-----------+
Wyjaśnienie Zestaw testowy działa na zdalnym terminalu, więc wolę narzędzi raportowania linii poleceń.
+1 Dzięki. Czy któreś z nich ma znaczenie dla powłoki terminalu? –
Na pewno można zainstalować dowolne z tych narzędzi do generowania plików xml/html po stronie serwera i używać go na zdalnej powłoce terminala. Ale w tym przypadku musisz najpierw pobrać raporty, aby zobaczyć je w przeglądarce. Lub, alternatywnie, możesz użyć tekstowej przeglądarki internetowej, takiej jak [lynx] (http://lynx.browser.org/), aby wyświetlić raporty bezpośrednio w konsoli. – alecxe
To by nadmiernie skomplikować sprawy. Myślę, że zrobi to prosta zakładka w powłoce. –