在已有的测试工具中,源代码测试工具有着重要的应用。
In had in the testing tool, the source code test labor is having the important application.
这段代码测试我的问题领域中最关键的部分之一:获取数字的因子。
This code tests one of the most critical parts of my problem domain: getting factors for a number.
大部分开发人员(不管他们是否测试自己的代码)至少都了解过关于代码测试的课程。
Most developers, whether they test their code or not, have at least gotten a lecture about testing code at some point.
您不打算将此代码提交,您只想做临时的一些变更,以便,也许,您可以完成代码测试。
You don't intend to check this code back in; you merely want to make some temporary changes so that, perhaps, you can finish testing your code.
看起来你需要代码覆盖率工具,分析解决方案,显示这行代码测试,哪些不是。
Looks like you need code coverage tool, which analyzes your solution and shows which lines of code tested and which are not.
在一天结束的时候,如果你的代码测试,随后和防御性编码实践,你不该有任何的一致性问题。
At the end of the day, if your code is well tested, and defensive coding practices are followed, you shouldn't have any consistency problems.
在代码测试的次数方面,在之前的项目中我们没有打算在我们的软件中进行 100% 代码覆盖率的测试。
In terms of how much of the code to test, on previous projects we hadn.t aimed for 100% code coverage in our software.
因此基于5.6的源码树修改代码测试,我觉得如下思路是靠谱的,正按着这个方案重新整理代码。
And then I try to modify code on MySQL 5.6 source code, I found a practical way, I'm coding with this design.
Facebook有每周定期的产品更新,但如果工程师想测试新东西,每天都可以在一组用户中进行代码测试。
Facebook has weekly product updates, but if you really want to test something, you can push your code out daily to a group of users to test.
1993年,在我的电脑后,勤奋工作,我把我的第一个代码测试和通过了第一次尝试20每分钟考试。
In 1993, after diligent work at my computer, I took my first code test and passed the 20 WPM exam on the first try.
虽说这么做并不会导致不同浏览器上代码测试的工作量,但毫无疑问,它有助于我们在开发过程中了解是否已经偏离了轨道。
It wouldn't eliminate the need to test the code on many browsers, but it would sure help during the development process to know if you are on track or not.
还有一个重点需要注意:在清单7中的以下代码行(在下面的清单8中断开)中,这段代码测试每个单元格,确保它们不为空。
One more important note: in the following lines of code from Listing 7, broken out in Listing 8 below, the code tests each cell to make sure it's not null.
在本专栏文章中,通过演示两种不同的方式来启用和禁用断言以便优化代码测试和性能,我将向您讲述一些有关向代码中添加断言的基本知识。
In this column, I'll show you the basics of adding assertions to your code, demonstrating a couple of different ways to enable and disable them for optimum code testing and performance.
可以用下面的代码测试这个Factorial类,可以在文件factorial . py中找到这些代码(请参阅参考资料)。
You can test your factorial class using the following code, which you'll also find in the file factorial.py (see Resources).
敏捷教练和咨询顾问们经常警告他们的客户:传统的度量指标,诸如收益价值、工作小时数、代码行数,以及代码测试覆盖率等都不能与敏捷项目很好地吻合。
Agile Coaches and Consultants frequently warn their clients that traditional measures such as Earned Value, Hours Worked, Lines of Code, Code Coverage for Tests are not well suited to Agile Projects.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
我接受任何形式的帮助,如代码、文档、测试等。
I accept all kinds of help like code, documentation, tests,...
由于尚没有为系统中的相应部分构建代码,测试失败。
The test fails because you have not yet built the code for that part of your system.
为现有代码编写测试可能是个挑战。
匿名块如何为过程代码的测试、原型化和问题诊断提供便利。
How anonymous blocks can facilitate the process of testing, prototyping, and troubleshooting of procedural code.
这能减少在代码中测试生成进程的需要。
This reduces the requirement to test the spawning process in your code.
在一个理想的小敏捷项目之中,您有小的交接,因为团队成员要扮演所有的项目角色(编写实例,开发代码,测试,等等)。
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).
对代码进行测试的下一步是用代码覆盖工具对测试进行度量。
The next step beyond testing code is measuring the tests with a code coverage tool.
添加确实包括该代码的测试也许是有益的。
It may be beneficial to add a test that covers this code explicitly.
我刚刚从学校毕业出来,没有足够的经验去开发代码、测试代码、撰写文档、推销产品、或者做可用性测试。
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.
这个工具能够使我们观测我们提供的代码覆盖测试,然后决定是改进测试还是通过手工检查的方法来测试代码。
This tool enabled us to monitor the coverage provided by our tests and then decide whether to improve the tests or test the code through manual inspection instead.
为探究未知gui代码而编写测试比为非可视化代码编写测试要复杂。
Writing tests to explore unknown GUI code is more complex than writing tests for non-visual code.
不幸的是,代码覆盖测试只能确保您想要测试的所有代码得到执行。
Unfortunately, code coverage testing only makes sure you're executing all the code you'd like to test.
不幸的是,代码覆盖测试只能确保您想要测试的所有代码得到执行。
Unfortunately, code coverage testing only makes sure you're executing all the code you'd like to test.
应用推荐