青年中文青年中文

unittest的意思

unittest中文翻譯:

單元測試

相似詞語短語

bread units───面包單位

bedroom community───n.郊外住宅區;= dormitory town

starter unite───起動裝置

serviceable unit───可維修單元

units specified don───指定的單位

afforestation community───造林群落

proverbs reunite the listener with───諺語使聽者與

ammunition sales───彈藥銷售

americans united separation church state───美國聯合分離教會國家

united kingdom───n.英國; 聯合王國(由英格蘭、蘇格蘭、威爾士和北愛爾蘭組成的政治實體);聯合王國(英國)

雙語使用場景

This article shows you some typical usage of unittest and doctest that have improved tests in my own software.───本文向您介紹了 unittest 和 doctest 的一些典型用法,它們已經改進了我自己的軟件中的測試。

Using unittest adds quite a few capabilities to the simpler doctest style.───使用 unittest 為較簡單的 doctest 方式增添了相當多的能力。

Done this way, the unittest module will accept a -v option for more verbose output.───使用這種方式時,unittest模塊將接受一個- v選項以給出更詳細的輸出。

These steps also show the tasks required to start the Unit Test feature, although this would already be up in a typical work session.───這些步驟還展示了啟動UnitTest特性所需的任務,盡管在典型的工作會話中,該特性應該已經啟動。

It collects classes regardless of whether the class inherits from unittest. TestCase or not.───無論類是否繼承自unittest.TestCase,它都會收集它們。

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

英語使用場景

All three frameworks this article is looking at, zope.testing, py.test, and nose, support the standard setUp() and tearDown() routines of any unittest.TestCase classes that the programmer writes.