我正在编写一个Pythonic工具,该工具可验证某个系统的正确性。每个验证均以Python编写unittest,报告如下所示:
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
我认为,这种格式很难阅读,特别是对于非Python专家而言。是否有任何报告生成器可以生成表格形式的报告,例如:
+----------------------------------------------------------------+-----------+
| 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 |
+----------------------------------------------------------------+-----------+
说明性该测试套件在远程终端上运行,因此我更喜欢命令行报告工具。
青春有我
慕村9548890
相关分类