Write the setup and teardown methods.
编写setup和teardown方法。
FBI Vehicle-Tracking Device: The teardown.
FBI的汽车跟踪设备:拆解。
Each test function call is sandwiched between a call to setUp and tearDown.
每个测试函数的调用被夹在setUp和tearDown调用之间。
So, why don't you add this functionality in the setup/teardown routines?
那么,为什么不在设置/清除例程中添加这种功能呢?
These "teardown reports" provide a glimpse into a company's manufacturing.
由此而来的这些“拆机报告”提供给我们一个机会一睹一家公司的生产作业。
Moving on to py.test, it by default provides no support for setup and teardown.
test 在默认情况下不提供对 setup 和 teardown 的支持。
It provides a template for writing tests with setup, execution, and teardown.
JUnit提供一个用于编写测试的模板,该模板可以安装、执行和卸载。
Therefore, it's a good idea to use assertion macros in the TearDown code for better maintenance.
因此,为了便于维护,最好在TearDown代码中使用断言宏。
A huge issue in designing and writing a test suite is how to handle common setup and teardown code.
在设计和编写测试套件时,一个大问题是如何处理共同的setup和teardown代码。
The setUp method is called before execution of a unit test, and tearDown is called when the test is executed.
在执行单元测试之前调用setUp方法,在测试执行完时调用tearDown。
The next steps in a teardown are identifying the parts and calculating the costs of materials and assembly.
拆解的下一步工作就是辨认零部件以及计算这些零部件在材料和装配方面的成本。
The next steps in a teardown are identifying the parts and calculating the costs of materials and assembly.
拆卸“的进一步过程是辨识每一个部件,然后计算其物料和组装成本。
A tearDown method is also a good idea, but not strictly necessary, unless you're running integration tests.
包括tearDown方法也很不错,但不作严格要求,除非要运行集成测试。
The tearDown function provides the test author with his or her opportunity to clean up or reset the test fixture.
tearDown函数则给测试者提供了另外一个机会,可以去清除或者重置测试夹具。
In practice a test fixture usually is a combination of setup and teardown functions, associated with test case.
实际上测试夹具通常是安装和拆卸函数的组合,和测试用例结合。
As you can see from this output, the setup and teardown routine messages appear once each per unit test execution.
正如在输出中看到的,每次执行单元测试都会显示设置和清除例程消息。
JUnit 4 also introduces a new feature that really has no equivalent in JUnit 3: class-scoped setUp and tearDown methods.
JUnit 4也引入了一个JUnit 3中没有的新特性:类范围的setUp和tearDown方法。
It also looks at details like how common test setup and teardown is supported, or not supported, by the three frameworks.
还讨论一些细节,比如这三种框架对共同的setup和teardown代码的支持情况。
Normally, these components don't run without a container, requiring you to perform special setup before testing and teardown afterward.
通常,这些组件没有容器不能运行,并要求您在测试前和拆卸后执行特殊设置。
How many man-hours would it take for you and your company's staff to accomplish the classroom training setup, service and teardown ?
多少工时是否以你们公司的工作人员完成课堂训练体制、服务和拆卸?
It does not even run the setUp and tearDown methods of standard unittest.TestCase classes unless you have turned on its unittest plug-in.
它甚至不运行标准unittest . testcase类的setUp和tearDown方法,除非打开它的unittest插件。
The unittest framework will cycle through the test functions, calling setUp, the test function, then tearDown for each test function.
unittest框架会在测试函数之间循环往复,先调用setUp、再测试函数、然后清除(tearDown)测试函数。
So all of the cases are already handled, and any branches to weed out extra teardown steps will only serve to slow down the default case.
所以所有情况都已经得到了处理,清除额外的结束步骤的任何分支只会减慢对默认情况的处理。
Python's with statement provides a very convenient way of dealing with the situation where you have to do a setup and teardown to make something happen.
有一些任务,可能事先需要设置,事后做清理工作。对于这种场景,Python的with语句提供了一种非常方便的处理方式。
The article summarized the structure of the valve train of model EA113 engine used in Jetta, also particularized the methods of teardown and Maintenance.
本文概述了捷达王用EA1 1 3型发动机配气机构的构造,详述了其拆卸和维修方法。