For instance, run the test code in the server context itself, where the component will be running.
例如,在这个服务器自身中运行这个测试代码,并且这个组件将在这里运行。
What if there are tens or hundreds of locators in the test code?
万一这段测试代码里面有几十上百个定位器怎么办?
Refactoring is a more tedious procedure than generating new test code from scratch.
重构会是一个比从头生成新测试代码更乏味的过程。
Now the test code clearly represents the intent of the test.
现在,测试代码清楚地表示出了该测试的意图。
To keep the code simple, I put the class and the test code in one file.
为了保持代码简单,我把类和测试代码放在一个文件中。
Our test code, specifically the mock objects, give us total control over the database results.
我们的测试代码,特别是模拟对象,使我们能完全控制数据库结果。
The test code would like it to produce a different type (a mock).
测试代码希望它产生另一种类型的对象(模仿对象)。
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
The performance comparisons use the same test code as earlier articles, a seismic data retrieval service.
性能比较使用与之前文章相同的测试代码,即地震数据查询服务。
In your test code, create a specialization object that extends (specializes) the target.
在测试代码中,创建扩展(专用于)目标对象的特殊化对象。
Writing application test code in a scripting language.
在脚本语言中编写应用程序测试代码。
However, it requires a lot of effort to create robust test code.
然而,它需要投入更多的努力才能创建出智能的测试代码。
A set of command line tools that do the dirty work of setting up directory structures and creating initial production and test code.
一组命令行工具,用于进行设置目录结构和创建初始生产及测试代码的修改工作。
At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.
同时,在测试与以前类似的场景时,记录所有测试场景会创建重复的测试代码。
Since this doesn't side-step patents, though, any issues relating to the test code that infringe on patents may still be a problem.
但这么做却无法回避专利问题,因此与这些侵犯了专利的测试代码相关的内容依然是个问题。
This means that vendors can test code that has not yet been shipped.
这意味着供应商可以测试尚未发布的代码。
The short "code, test, code, test" cycle of TDD invites refactoring in these cases, which continually drives the development of uncomplex code.
在这些情况下,TDD的简短的 “代码、测试、代码、测试”循环将导致重构,而这将继续驱使非复杂代码的开发。
The test code at the bottom illustrates just how much cleaner this syntax is.
底部的测试代码只演示了这个语法干净了多少。
To add a new batch item, I use the following test code.
使用以下测试代码添加新的批处理条目。
The updated test code is shown in Listing 6.
更新后的测试代码如清单6 所示。
Write your test code for the model.
为模型编写测试代码。
The output of each section of match test code is sorted, then added to the overall suggestion link list.
首先,对匹配测试各部分的输出进行排序,然后将其添加到总建议链接列表。
You may also be able to generate test code directly from the design models.
你还可以直接从设计模型中产生测试代码。
Response time breakdown shows you how much time was spent in each part of the system under test code as the system was exercised.
当这个系统运行时,响应时间细分数据为您显示了被测试系统的每一部分所花费的时间。
The test code also needs to be upgraded, as shown in Listing 4.
测试代码也需要进行更新,如清单 4 所示。
The test code at the bottom starts by deleting all the entries from the database.
底部的测试代码先删除数据库中的所有条目。
Typical tasks in his cycles are writing a test, code to pass the test, refactor the code, commit the changes.
每个周期内的典型任务包括写测试、让代码通过测试、重构代码、提交修改。
Look at all of the scaffolding that was necessary to support two actual lines of test code!
看到了吗?这么多代码只是为了支持两行测试代码!
The test code is shown in Listing 2.
测试代码如清单2 所示
Listing 6 shows the main parts of the test code I'll use to check out the performance.
清单6显示用于检查性能的测试代码的主要部分。
应用推荐