Listing 1. Statically defining a testsuite.
清单1.静态定义testsuite。
The final step is packaging and deploying TestSuite.
最后一步是打包和部署TestSuite。
Listing 3 is a sample TestSuite for a couple of classes.
清单3是两个类的TestSuite示例。
Ruby includes two ways to show the results of the TestSuite.
Ruby有两种显示TestSuite结果的方法。
Here you've defined a module called testsuite in the group org.apache.pluto.
在这里已经在or g . apache . pluto组中定义了一个名为testsuite的模块。
It's a TestCase that exposes the public static TestSuite suite method signature.
它是一个公开publicstaticTestSuitesuite方法签名的TestCase。
Start with Listing 8, which shows the module declaration for the Pluto TestSuite.
从清单8开始,它显示了Pluto TestSuite的模块声明。
Listing 1 illustrates that a TestSuite is composed of class instances of Test classes.
清单1表明TestSuite是由test类的类实例组成的。
This is a bit easier than having to add a new line to the TestSuite file and recompile it.
比起需要将一行新代码添加到TestSuite文件并进行重新编译,这样还是多少简单了一点。
With the first way, you pass the test class to the TestSuite constructor by using this command.
对于第一种方法,您可以通过使用这个命令将测试用例传递到TestSuite构造器。
TestSuite is a portlet application, which means that it depends on Pluto-related libraries to run.
TestSuite是一个portlet应用程序,这意味着它的运行依赖于与Pluto相关的库。
You can then point JUnit at the TestSuite instance by defining a public static method named suite .
然后,可以通过定义一个叫做suite的publicstatic方法,在TestSuite实例中指定JUnit。
This file, shown in Listing 16, is similar to the TestSuite plan but doesn't require security roles.
此文件(如清单16所示)类似于TestSuite计划,但是不要求使用安全角色。
For example, the class shown in Listing 1 creates a TestSuite holding all component tests in the suite method.
例如,清单1中显示的类创建了一个TestSuite,其持有suite方法中所有的组件测试。
To create a test suite without macros, instantiate CppUnit::TestSuite, and then add individual tests to the suite.
要想创建不使用宏的测试套件,应该实例化CppUnit::TestSuite,然后在套件中添加测试。
You can use JUnit's TestSuite class (which is of type test) to define a collection of tests as belonging together.
可以使用JUnit的testsuite类(属于test类型)来定义许多互相归属的测试。
This TestSuite class, like any other statically defined class, can be easily debugged using your favorite debugger.
这个testsuite类像所有其他静态定义的类一样,可以用喜爱的调试程序容易地调试。
It decouples the test reporting from the execution, allowing you to use different TestRunners with the same TestSuite.
它减少了来自执行过程中的测试报告量,允许使用同一测试套件中的不同测试操作程序。
Consequently, you can implement test categorization by creating a unit TestSuite, a component TestSuite, and a system TestSuite.
因而,可以通过创建单元TestSuite、组件TestSuite和系统TestSuite来实现测试分类。
PortletUnit USES JUnit to provide the outline of a testing framework (such as creation of TestCase and TestSuite using assertions).
portletUnit使用JUnit提供测试框架轮廓(比如使用断言创建TestCase和TestSuite)。
Installing the TestSuite is similar to installing the portal driver: You create a deployment plan, package a WAR file, and deploy it.
安装TestSuite类似于安装门户驱动程序:创建部署计划,打包并部署WAR文件。
Just as with the Pluto portal driver, you can easily deploy TestSuite using the deploy New option in the Geronimo administration tool.
就像Pluto门户驱动程序一样,您可以使用Geronimo管理工具中的DeployNew选项轻松地部署TestSuite。
The rest of the plan is similar to the one for the Pluto portal driver, except that TestSuite expects a role named tomcat instead of pluto.
计划的其余部分类似于Pluto门户驱动程序的计划,除了TestSuite 要求名为tomcat而不是 pluto的角色。
The downside of this method is that as you create new tests, you must add them programmatically to the appropriate TestSuite, which can be a pain.
这个方法的缺点是:一旦创建新测试,就必须通过编程将它们添加到适当的TestSuite 中,这很痛苦。
Now that the.war file is complete, you can use the Geronimo console to deploy it, just as you did for the Pluto portal driver and TestSuite applications.
现在.war文件已经完成,您可以使用Geronimo控制台部署它,就像您为Pluto门户驱动程序和TestSuite应用程序所做的操作一样。
Instead of manually building and maintaining the test suite, build a test case that automatically builds a TestSuite from all of your system's test cases.
取代手动建立和维护测试组合,建立一个能自动建立和维护来自你系统的全部测试环境的测试组合。
It is the interoperation of these four libraries that allows you to achieve your goal: a dynamically constructed TestSuite that ACTS as if it were statically defined.
这四个库的相互配合可以实现您的目标:动态构建的TestSuite可以像静态定义的那样运行。
To run the Pluto portal driver successfully, you must also install the Pluto TestSuite, which has default portlets that verify that the portal driver is working correctly.
要成功地运行Pluto门户驱动程序,您还必须安装 PlutoTestSuite,它拥有检验门户驱动程序是否正常运行的默认portlet。
Using the power and elegance of Jython, you can maintain a script that scours your filesystem, searching for classes that match a certain pattern, and dynamically build a JUnit TestSuite class.
利用Jython的强大和优雅,可以维护一个定位文件系统、搜索匹配某种样式的类和动态编译JUnittestsuite类的脚本。
For these two reasons, there is little risk in adopting Jython, especially given the payoff: unparalleled flexibility in the creation and debugging of dynamically generated JUnit TestSuite classes.
出于这两种原因,采用Jython的风险很少,特别是它提供了这样的好处:在创建和调试动态生成的JUnittestsuite类方面具有无可匹敌的灵活性。
应用推荐