Preferably, you should code test cases first.
您应该优先编写测试用例。
In had in the testing tool, the source code test labor is having the important application.
在已有的测试工具中,源代码测试工具有着重要的应用。
Mostly, software development projects depend on code test, structural test and performance test to identify bugs.
大部分软件开发项目依靠结合代码检查、结构测试和功能测试来识别软件缺陷。
In 1993, after diligent work at my computer, I took my first code test and passed the 20 WPM exam on the first try.
1993年,在我的电脑后,勤奋工作,我把我的第一个代码测试和通过了第一次尝试20每分钟考试。
Test-driven development is an Agile development technique in which developers code test cases before implementing the service.
测试驱动的开发是一种Agile开发技术,其中开发人员在实现服务之前先编码测试用例。
There are multiple ways to code test scripts, depending on the skill of the tester and the complexity of the application under test.
编写测试脚本有很多种方式,这取决于测试员的技巧和测试程序的复杂程度。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
Only after you have your tests written (and failing) do you write the code under test.
只有在编写了测试(并失败)后,您才可以编写测试中的代码。
Paste this code into your test class and save it.
将此代码粘帖到您的测试类,并保存。
This very simple application could be easily extended to become a very sophisticated and complex one, though the process to code, test and debug it would be similar.
您可以很容易地将这个非常简单的应用程序扩展为一个非常复杂的应用程序,但它们的编码、测试和调试的过程却是相似的。
Now the test code clearly represents the intent of the test.
现在,测试代码清楚地表示出了该测试的意图。
Use cases contribute to better quality development inputs and code that test organizations rely upon.
用例能够促进开发测试组织所依赖的更高质量的输入和代码。
To keep the code simple, I put the class and the test code in one file.
为了保持代码简单,我把类和测试代码放在一个文件中。
If you can decouple them, you can more easily code, test, and maintain them.
如果能将它们解耦,会更加易于编码、测试和维护。
We avoid the cost of rewriting code to test it later.
我们也避免了重写代码后再进行测试的高昂代价。
Fresh out of college, I didn't have enough experience to develop the code, test the code, write the documentation, market the product, or do the usability tests.
我刚刚从学校毕业出来,没有足够的经验去开发代码、测试代码、撰写文档、推销产品、或者做可用性测试。
Writing application test code in a scripting language.
在脚本语言中编写应用程序测试代码。
There is limited traceability between requirements, design, and code and test requirements.
需求、设计以及代码和测试需求之间的可跟踪性非常有限。
Add custom code for accessing test data files.
添加自定义代码来访问测试数据文档。
Change in test code: a test case that you added to improve code coverage may be causing the slowdown, possibly exercising a peculiar portion that is vulnerable to speed.
测试代码的变更:您增加的用来改善代码覆盖率的测试用例可能导致变慢,也有可能这部分代码特别容易影响速度。
In an ideal small agile project, you would have minimal hand-offs, because team members tend to take on all project roles (write stories, develop code, test, and so on).
在一个理想的小敏捷项目之中,您有小的交接,因为团队成员要扮演所有的项目角色(编写实例,开发代码,测试,等等)。
Test cases also serve as adept documentation because they implicitly demonstrate how the code under test works.
测试案例因为暗示了代码在测试工作中是如何工作的,所以还可以充当内行的文档。
Listing 3 shows the PHP code for this test.
清单3显示了该测试所用的php代码。
The short "code, test, code, test" cycle of TDD invites refactoring in these cases, which continually drives the development of uncomplex code.
在这些情况下,TDD的简短的 “代码、测试、代码、测试”循环将导致重构,而这将继续驱使非复杂代码的开发。
I ran the test and implemented code to make the test pass.
运行这个测试案例并实现代码使测试通过。
Moving along the spectrum, a unified process methodology breaks up the development effort into specific disciplines (design, code, test, and so on), as shown in simplified form in Figure 2.
这些技术中接下来涉及统一过程方法,其将开发工作划分为具体的规程(设计、编码、测试等),如图2中的简化形式所示。
The updated test code is shown in Listing 6.
更新后的测试代码如清单6 所示。
Write your test code for the model.
为模型编写测试代码。
You're changing this amorphous body of code with test - driven development.
你所做的是在测试驱动下修改一大堆乱七八糟的代码。
Unit tests often need to test nuanced behavior of the code under test, leading to similar and duplicated situations.
单元测试常常需要测试有细微差异的代码行为,因此涉及到相似和重复的情况。
应用推荐