The unit class tests checks each function unit (user command, system call) of os which is based on safe mechanisms.
单元级测试针对操作系统的各个功能单元(用户命令、系统调用)进行安全机制的检查。
As to evaluation feedback, bore in mind, the effectiveness of in-class tests can not be overlooked as well as the expansion and enhancement of knowledge in designing process.
测评反馈部分的设计要注意当堂检测的效度,还要兼顾到拓展与提高。
According to the class state diagram, taking class-valves as the main object of observation, class tests are carried out simultaneously combining with the class method testing.
该方法以类状态图为依据,以类阀为主要观察对象,结合类方法测试去同步地实施类测试。
As always, the unit tests for that class should capture the functionality for each of its methods.
像往常那样,该类的单元测试应该捕获其每个方法的功能。
Once you have tested all packages a little, you can write some tests for each class that shows no coverage.
在测试所有的包之后,就可以对每一个显示为没有覆盖的类编写一些测试代码。
But if you have a class that isn't using these objects, do not tie these objects to the class through the tests.
但是如果您有一个根本不使用这些域对象的类,在测试中就不要将这些对象联系到该类上。
They provide methods to let the tests control the behavior of all the business methods of the faked class.
它们提供了一些方法来让测试控制这个虚构类的所有业务方法的行为。
The test class contains two tests: one to authenticate a valid user and another to authenticate an invalid user.
这个测试类包含两个测试:一个是鉴定一个无效用户,另一个是鉴定一个有效的用户。
To solve this problem, create a separate class for each variable you need to save, naming the class as the variable name you need to reference in subsequent tests.
为了解决这个问题,为您需要保存的每一个变量创建一个单独的类,给类命的名要参考在随后的测试中您需要应用的变量名。
The final command run tests an arbitrary class name to determine its calculated logging level, which is then tested.
最后一个命令测试一个随意的类名,确定它的计算的日志级别,然后对级别进行测试。
Write tests in a "just-in-time" fashion, when you find the need to modify a class that doesn't have good (or any) tests.
当您发现有必要对一个未经很好测试(或者根本就没有测试)的类进行修改时,请“随时”编写测试。
The test class represents the usual unit of test execution that occurs while you are developing, and so we should consider carefully how many tests to include in any one class.
测试类表示在开发时发生的测试执行的常见单元,所以我们应仔细考虑任何一个类中包括了多少个测试。
Component tests are essentially tests that verify more than one class and, typically, rely on external dependencies such as a database.
组件测试是基本的测试,这些测试将验证不止一个类,且通常依赖于外部依赖项,如数据库。
Coverage tests let you see which code is actually being executed in a class or application.
覆盖测试使您可以清楚一个类或应用程序中哪一部分的代码真正得到执行。
Finally, the two lines at the bottom allow you to run the tests within this test class by simply running this module.
最后的两行负责在这个测试类内部运行测试,方法是直接运行该模块即可。
Writing tests first additionally lets you know when the class is complete.
先编写测试还使您知道该类何时完成。
Because code may be changed by an aspect, unit tests that run perfectly on a class may behave quite differently when the class is integrated into an AOP system.
由于代码可以被某一个方面所改变,在一个类上可以完美运行的单元测试当这个类被集成入一个AOP系统中可能会出现完全不同的运行状况。
Some people think that boys should be able to walk around in class, or take more time on tests, or have tests and books that cater to their interests.
一些人认为,男孩儿应当可以在教室里走来走去,或者参加更多的测试,或提供满足他们兴趣的测试与书籍。
We then applied some simple tests. Did investors plonk their money into an asset class that had been performing strongly over the previous 12 months?
之后我们采取一些简单的测试进行验证:在某种资产类别在过去12个月中变现强劲时,投资者是否买进这种基金?
In this article we'll look at an example of creating tests for a single class using IRAD.
本文中,我们将看一个使用IRAD为单个类建立测试的示例。
All in all, KIPP students get about 60% more class time than their peers and routinely score better in tests.
总的来说,KIPP的学生比同龄人多拥有60%的课堂时间,考试成绩自然也要好一些。
Limit the tests to one class at a time, and run only the tests that are likely to expose gaps in the coverage of that one class.
每次把测试限制在一个类上,而且只运行能够暴露这个类的覆盖不足的测试。
With automated migration, teams can regularly perform dry runs that deploy the code into a clean "production class" environment, where automated unit and system-level tests may be executed.
在自动化移植中,团队可以将代码转入干净的“生产级”环境,在那里可以执行自动化的单元和系统级测试。
The next step is to run your unit tests, fix the syntax errors (that is, implement the class with the interfaces just defined by your test), and run the tests again.
下一步就是运行您的单元测试,修正语法错误(即,编写一个类,使它实现您的测试刚定义的接口),并再次运行测试。
The above listing is a test class which performs basic tests on the feedparser module.
上述清单是实现feedparser模块基本测试功能的测试类。
Junit also provides a way to group tests into a suite by using the junit.framework.TestSuite class.
junit还通过利用junit . framework .testsuite类提供了一种将测试归组为测试套件的方法。
You may define a custom class with equality and inequality tests to hold all XML documents with the root element
您可以定义一个带有相等和不等测试的自定义类,来包含带有根元素
By extracting the highlighting logic, you can write unit tests for it by calling methods on the HighlightUtil class.
通过抽取突出显示逻辑,可以编写调用highlightutil类的方法的单元测试。
Jester made 11 changes to the class, and only one caused the tests to fail.
Jester对类进行了11项修改,而只有一项造成测试失败。
I had to write one for Jaxen because it didn't include a single class that ran all its tests.
我不得不为Jaxen编写一个主类,因为它没有包含一个可以运行它的全部测试的类。
应用推荐