6330N/AAnt options to control the tests:
6330N/A
6330N/A -Dorg.opends.test.suppressOutput=false
6330N/A Writes the unit test output to the console.
6330N/A
6330N/A -Dtest.progress="default,memory"
6330N/A Unless explicity disabled using -Dtest.progress=none, the
6330N/A tests provide continuous progress of the tests that are being
6330N/A run. The specific options to set for this property are
6330N/A
6330N/A none: no progress output
6330N/A all: enables all progress (slows tests)
6330N/A default: same as "time,count,restarts"
6330N/A time: timing information for the tests
6330N/A count: # of run test classes, methods, and invocations
6330N/A memory: running total of memory usage (slows tests)
6330N/A threadcount: running total of active threads
6330N/A threadchange: +/- changes for active threads between tests
6330N/A restarts: running total of in-core server restarts
6330N/A
6330N/A To specifying multiple values, nseparate them with ',' and
6330N/A quote the entire value. For instance, when you want the default
6330N/A output plus more, do -Dtest.progress="default,memory".
6330N/A
6330N/A Enabling memory progress slows down the tests significantly.
6330N/A Include the otherwise undocumented property "gcs" to see how
6330N/A much time each progress line spends doing garbage collections
6330N/A to get an accurate measure of memory usage.
6330N/A
6330N/A A new line of progress is written when TestNG completes running tests
6330N/A for a class. This progress is reported immediately before TestNG
6330N/A starts to run the first test of the next class. All @BeforeClass
6330N/A and @BeforeMethod methods will have been invoked for the next
6330N/A class as well as the @DataProvider (if any) for the first test method.
6330N/A Keep this in mind when debugging memory usage, running times, and
6330N/A thread creation.
6330N/A
6330N/A -Dtestng.verbosity0to5=5
6330N/A for example has TestNG dump the maximum amount of debugging
6330N/A output to stdout. This output is useful to check the order
6330N/A in which test methods are invoked. Valid values are integer
6330N/A values from 0 (no output) to 5 (maximum output). Since this
6330N/A implicitly sets -Dorg.opends.test.suppressOutput=false,
6330N/A other stderr/stdout output generated by the unit tests will
6330N/A also be displayed.
6330N/A
6330N/A -Dorg.opends.test.pauseOnFailure=true
6330N/A pauses the test suite whenever a failure occurs allowing you to inspect
6330N/A the server more closely in the failure state
6330N/A
6330N/A -Dorg.opends.test.copyClassesToTestPackage=true
6330N/A copies the classes into the test server root. This enables you to run
6330N/A the server tools on the test server. It can slow down the test startup
6330N/A so the files are not copied by default.
6330N/A
6330N/A -Dtest.failures=true
6330N/A Runs only the tests that failed last time.
6330N/A
6330N/A -Dorg.opends.server.debug.target=org.opends.server.core:level=verbose,category=data
6330N/A for example only include debug messages in the core
6330N/A package that are related to data access and at the
6330N/A verbose level or higher. The syntax of this target
6330N/A definition is the same as the org.opends.server.debug.target.x
6330N/A property when starting ${SHORT_NAME}.
6330N/A Default debug target:
6330N/A org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack,cause
6330N/A
6330N/A -Dtest.diff.srcpath='src_path[ src_path]...'
6330N/A A space separated list of source directories (relative to the ant base
6330N/A directory), whose classes should be included in the coveragediff report.
6330N/A
6330N/A -Dtest.groups=exclude=slow
6330N/A for example excludes the slow tests. Each value is expected
6330N/A group inclusion/exclusion clause which consists of either 'include'
6330N/A or 'exclude' followed by the '=' character and then a group name.
6330N/A For multiple group clauses, separate them with a ',' and
6330N/A quote the entire value. Debug logging is disabled.
6330N/A
6330N/A -Dtest.packages=java_package_name[,java_package_name]...
6330N/A Comma separated list of packages to test.
6330N/A Debug logging is disabled.
6330N/A
6330N/A -Dtest.classes=className[,className]...
6330N/A Comma separated list of fully qualified names of classes to test.
6330N/A Debug logging is disabled.
6330N/A
6330N/A -Dtest.methods=classname.method[,classname.method]...
6330N/A Comma separated list of methods incl. fully qualified names of classes
6330N/A to test. Debug logging is disabled.
6330N/A
6330N/A -Dtest.remote.debug.port=5005
6330N/A for example will allow you to remotely debug the unit tests from
6330N/A the debugger of your choice by pointing it at port 5005.
6330N/A The unit tests will not start to run until the debugger is attached
6330N/A unless you also specify -Dtest.remote.debug.suspend=n.