在unittest上读到它说:
The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.
(重点是我的)
当然,我在google上搜索了一下“什么是报告框架”,希望得到一个这么好的问题,但没有看到。那么,在这种情况下,什么是报告框架?你知道吗
报告框架是测试系统的一部分,负责报告测试结果。当你run a test:
并查看输出:
报告框架获取有关过程、失败和异常的原始数据,并生成您看到的输出。你知道吗
unittest
将其与直接负责测试功能的系统部分和负责收集和运行测试的系统部分分开。运行TestCase
生成一个^{相关问题 更多 >
编程相关推荐