Name

test

Synopsis

Executes a unit test in the org.apache.testlet framework.

Attributes

classpath (1.3, 1.4, Path, N)

Specifies the classpath to use.

classpathref (1.3, 1.4, Reference, N)

A reference to a classpath defined elsewhere in the buildfile.

forceshowtrace (1.3, 1.4, boolean, N)

If true, show a stack trace on any failure. Defaults to false.

showbanner (1.3, 1.4, String, N)

If specified, show a banner when starting the testlet engine.

showsuccess (1.3, 1.4, boolean, N)

If true, show a message when the tests succeed. Defaults to false.

showtrace (1.3, 1.4, boolean, N)

If true, show a stack trace on errors, but not normal test failure. Defaults to false.

Content

0,1 nested <classpath> elements (1.3, 1.4)

A path element specifying the classpath.

0..n nested <testlet> elements (1.3, 1.4)

Each contains a class name to test. For example:

<testlet>com.oreilly.util.test.CustomerTestlet</testlet>

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.