每个试验中还存在代码测试路径的问题。
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代码测试出来。
用客户机代码测试SimplifiedAirlines服务
我的工作就是写代码,而不是测试。
接着,编写更多的代码,继续测试。
若要测试代码,则必须进行部署。
最佳的代码从测试开始。
在单独的应用程序中测试代码。
你可以根据代码和测试跟踪那些需求。
You were able to trace requirements through your code and tests.
彻底地测试代码。
因此,编写足够的代码来使测试进行编译、运行但结果失败。
So, write just enough code to get the test to compile, run, and fail.
现在我们已经准备好测试代码。
编写足够的代码以使测试进行编译。
定位您的代码返回到测试的值。
测试覆盖率:代码被测试过的百分比。
编写足够的代码,使测试通过。
现在,测试代码清楚地表示出了该测试的意图。
Now the test code clearly represents the intent of the test.
更新后的测试代码如清单6 所示。
为模型编写测试代码。
为了保持代码简单,我把类和测试代码放在一个文件中。
To keep the code simple, I put the class and the test code in one file.
然后开发人员使用测试环境对代码进行测试。
Then the developer uses the test environment to test the code.
不要只对您的代码进行测试:检查代码,并将它交给其他人进行检查。
Don't merely test your code: review your code and get it reviewed by others.
测试代码如清单2 所示
相反,您只需编写测试,然后编写足够的代码使其能通过测试。
Instead, write a test, then write just enough code to get that test to pass.
相反,您只需编写测试,然后编写足够的代码使其能通过测试。
Instead, write a test, then write just enough code to get that test to pass.
应用推荐