每个试验中还存在代码测试路径的问题。
There’s also the issue of testing code paths for each experiment.
简单地说,单元测试是用代码测试代码。
Simply put, unit testing means writing code to test other code.
用客户机代码测试服务。
代码测试的情况如何?
我有这个代码测试。
您不能通过一个简单的if - then代码测试出来。
在已有的测试工具中,源代码测试工具有着重要的应用。
In had in the testing tool, the source code test labor is having the important application.
用客户机代码测试SimplifiedAirlines服务
这段代码测试我的问题领域中最关键的部分之一:获取数字的因子。
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.
虽说这么做并不会导致不同浏览器上代码测试的工作量,但毫无疑问,它有助于我们在开发过程中了解是否已经偏离了轨道。
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.
接着,编写更多的代码,继续测试。
由于尚没有为系统中的相应部分构建代码,测试失败。
The test fails because you have not yet built the code for that part of your system.
最佳的代码从测试开始。
为现有代码编写测试可能是个挑战。
你可以根据代码和测试跟踪那些需求。
You were able to trace requirements through your code and tests.
编写足够的代码以使测试进行编译。
编写足够的代码以使测试进行编译。
应用推荐