unittest

unittest

常用释义

词性释义

unittest
例句
  • 全部
这些步骤还展示了启动UnitTest特性所需的任务,尽管在典型的工作会话中,该特性应该已经启动。
It collects classes regardless of whether the class inherits from unittest. TestCase or not.
无论类是否继承自unittest.TestCase,它都会收集它们。
使用unittest为较简单的doctest方式增添了相当多的能力。
It is quite handy to frequently run a unittest when making changes to a module.
在对模块进行更改时,需要频繁地运行单元测试,而这也是非常容易的。
Also note, finally, that the Zope test frameworks only support tests that are either UnitTest instances or doctests.
最后注意,Zope测试框架只支持UnitTest实例或doctest。
The docstrings processed by doctest can contain tracebacks within them, but a better approach to special cases is to utilize unittest.
由doctest处理的文档字符串可能会在其内部包含回溯(traceback),但是在特别的情况下,更好的方法是使用unittest。
Without being asked, nose will always detect subclasses of unittest. TestCase and use them as tests.
无须特别指定,nose总会检测unittest.TestCase的子类并作为测试使用它们。
Figure 7 shows a drag and drop operation where the developer copies the COBOL program BK92S1 to the Unit Test feature for the changes.
图7展示了一个拖放操作,开发人员通过该操作将COBOL程序BK92S1复制到UnitTest特性以便修改。
You need to add a flag to run run -e so that you can avoid getting a traceback to the unittest module in the IPython shell.
您需要添加一个标记以运行run-e,这样一来,您就可以在IPythonShell中避免回溯到单元测试模块。
One final feature to demonstrate is running a unittest within an IPython shell.
这里要展示的最后一个特性是,在IPythonShell中运行单元测试。