java left logo
java middle logo
java right logo
 

Home arrow Other API Tips
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 4100
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
How to use Test task E-mail
User Rating: / 0
PoorBest 

Test

Description

This is a primitive task to execute a unit test in the org.apache.testlet framework.

This task is deprecated as the Testlet framework has been abandoned in favor of JUnit by the Avalon community.

Note: This task depends on external libraries not included in the Ant distribution. See Library Dependencies for more information.

Parameters

Attribute Description Required
showSuccess a boolean value indicating whether tests should display a message on success No
showBanner a boolean value indicating whether a banner should be displayed when starting testlet engine No
forceShowTrace a boolean indicating that a stack trace is displayed on any failure No
showTrace a boolean indicating that a stack trace is displayed on error (but not normal failure) No

The user can also specify the nested <classpath> element which defines classpath in which the task is executed. The user also specifies a subelement per testlet executed which has content that specifies tasklet classname.

Examples


<test showSuccess="false" showBanner="false" showTrace="true" 
 forceShowTrace="true">
   <classpath refid="test.classpath"/>

   <testlet>org.foo.MyTestlet</testlet>
   <testlet>org.foo.MyOtherTestlet</testlet>
</test>
The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet

Source: Apache Ant


 Related Tips

 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.