You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2010/08/24 16:16:55 UTC
[Lucene-java Wiki] Update of "RunningTests" by RobertMuir
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.
The "RunningTests" page has been changed by RobertMuir.
http://wiki.apache.org/lucene-java/RunningTests
--------------------------------------------------
New page:
= Running Tests =
This page describes how to run Lucene/Solr tests and various options you can use.
== Basic Operations ==
=== Running all tests ===
To run all tests, just run 'ant test'
=== Running all tests in a specific package ===
To run tests in a specific package, use -Dtestpackage
For example: 'ant test -Dtestpackage=search'
=== Running only a specific test class ===
To run a specific test class, use -Dtestcase
For example: 'ant test -Dtestcase=TestIndexWriter'
=== Running only a specific test method ===
To run just a single method in a test, use -Dtestmethod
For example: 'ant test -Dtestcase=TestIndexWriter -Dtestmethod=testDocCount'
== Test Options ==
The following options can be use to modify the behavior of tests.
>>From ant, you can set these on the command line by using -D.
>>From your IDE, you can set these by adding jvm arguments with -D.
||variable||description||default value||example||
||tests.verbose||increases verbosity of tests. Use this to get (potentially very loud) test output||false||-Dtests.verbose=true||
||tests.codec||sets the FlexibleIndexing codec for the test to use||random||-Dtests.codec=Pulsing||
||tests.locale||sets the JVM default locale for a test to run under||random||-Dtests.locale=ru_RU||
||tests.timezone||sets the JVM default timezone for a test to run under||random||-Dtests.timezone=Australia/Lindeman||
||tests.directory||sets the lucene directory impl for a test to use||RAMDirectory||-Dtests.directory=FSDirectory||
||tests.multiplier||multiplier to increase the work done by random tests||1||-Dtests.multiplier=3||
||tests.threadspercpu||determines how many tests per cpu should run in parallel. 0 disables parallel tests||1 for Lucene, 2 for Solr||-Dtests.threadspercpu=4||