It allows developers to hide from defects and from testing code.
开发人员可以避开缺陷和测试代码。
In most cases, simple test functions are more than adequate for testing code.
在大多数情况下,简单的测试函数对测试代码来说已经足够了。
The next step beyond testing code is measuring the tests with a code coverage tool.
对代码进行测试的下一步是用代码覆盖工具对测试进行度量。
Running and testing code that USES this API requires a real device with such capabilities.
运行和测试使用此API代码需要一个拥有这样能力的真实设备。
Quality: Testing code can be one of the most efficient ways to find defects in your application.
质量:测试代码是找到你的程序中缺陷的最有效率的方法之一。
Perhaps you're writing a test suite for such a library and find writing the testing code a tedious task.
也许你正在为这些类库编写测试用例,但是发现这是一个让人烦躁的工作。
For integrating and testing code from multiple developers, we set up a test server with the following software.
为集成和测试多名开发人员的代码,我们用下列软件构建了测试服务器。
Most developers, whether they test their code or not, have at least gotten a lecture about testing code at some point.
大部分开发人员(不管他们是否测试自己的代码)至少都了解过关于代码测试的课程。
Even with the abundance of testing frameworks like TestNG, Selenium, and FEST, the reasons for not testing code are manifold.
即使现在已经有了很多测试框架,例如TestNG、Selenium和FEST,但不对代码进行测试的理由仍然充分。
Performing integration testing on code supplied from multiple sources is quite different from testing code from a single source.
对多来源的代码进行集成测试与对单来源的代码进行集成测试是很不同的。
No need to include testing code inside the component code which can be time consuming and lead to the unexpected introduction of software defects.
无需在组件代码内包含测试代码,因为这很耗时且容易引发意外的软件问题。
For example, code that might go into an infinite loop, or otherwise use excessive resources, must be wrapped in testing code that will detect such eventualities.
例如,必须在专门的测试代码中捕捉到占用大量资源的无限循环代码。
Tasks for participating students can include writing code, creating documentation, training others, testing code, UI research and design, and community outreach.
参加学生的主要任务包括写代码,文档,培训其他人,调试代码,UI研发和社会拓展。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
Whether their mission is development, testing, or code control, teams do not want constraints on how they operate, particularly in their choice of tools.
不论团队的任务是开发、测试,或代码控制,它们都不希望在如何操作上受到约束,特别是在工具的选择上。
I usually work by making small changes to the code and then testing the new code before I move on.
我的工作通常是在向前进展之前,在核心组件做一个小的变化然后测试新的代码。
I use these mainly for compiling and testing the code that I write on other systems, and to allow me to run clients and servers on the various hosts.
我主要用它们来编译和测试我在其他系统上写的代码,同时也可以方便地在不同的主机环境下运行客户端和服务器。
When designing and building GWT applications, you must think about testing the code without relying on user interactions.
在设计和构建GWT应用程序时,您必须清楚不要依赖用户界面测试代码。
This is good for testing your code, but once you are ready to deploy your application, you should modify the address information.
这对测试您的代码有用,但一旦您要着手部署应用程序,则应当修改地址信息。
One of the most critical measurements for testing is code coverage.
代码覆盖率就是最重要的测试指标之一。
More support for testing whether code does or doesn't throw an exception.
为测试提供了更多的支持,无论代码是否抛出异常。
While DSF is not a replacement for actual device testing, it can greatly assist you in debugging and testing driver code.
虽然DSF不能取代真正的设备测试,但是它可以在很大程度上帮助您调试和测试驱动程序代码。
You may be testing this code to see the results of this effort firsthand.
您可以测试这段代码以直接查看这次尝试的结果。
Instead, you can simply restart the server or restart the EAR project within the running server and start testing your code changes.
相反,您可以简单的重启服务器或者在运行中的服务器内重启EAR项目并开始测试您对代码的修改。
When the team is making enhancements, fixing defects, and testing new code continuously, it's advantageous to release new versions more frequently.
当团队正在加强,修复缺陷,不停地测试新代码时,这对更频繁发布新版本是十分有利的。
Download the code for the testing tools from this article.
可从本文下载测试工具的代码。
Unfortunately, code coverage testing only makes sure you're executing all the code you'd like to test.
不幸的是,代码覆盖测试只能确保您想要测试的所有代码得到执行。
Developers need to design applications with testing in mind, and must be responsible for testing their code.
开发人员需要在设计过程中考虑到测试,并必须对测试他们的代码负责。
So the code is "clean and green," according to my simple unit test case — but that's meaningful only if I'm really testing the code thoroughly.
根据前面简单的单元测试用例,这块代码是“干净,绿色”的——但只有在我真正彻底地测试这块代码的情况下这才有意义。
That makes the anonymous blocks very useful when troubleshooting, prototyping, and testing procedural code, because these are tasks that usually require multiple change-and-execute runs.
这个优点让匿名块在诊断问题、原型化和测试过程代码时发挥重要作用,因为这些任务通常需要多个更改-执行过程。
应用推荐