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 2012/04/16 15:27:31 UTC

[Lucene-java Wiki] Update of "RunningTests" by SteveRowe

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 SteveRowe:
http://wiki.apache.org/lucene-java/RunningTests?action=diff&rev1=6&rev2=7

  
  Note: do '''not''' use higher versions (e.g. 1.8.1)
  
+ Tests run using the [[http://labs.carrotsearch.com/randomizedtesting.html|RandomizedTesting library]].  For usage instructions, run {{{ant test-help}}}.
+ 
  == Basic Operations ==
  === Running all tests ===
- To run all tests, just run 'ant test'
+ To run all tests, just run {{{ant test}}}
  
  === Running all tests in a specific package ===
- To run tests in a specific package, use -Dtestpackage
+ To run tests in a specific package, use {{{-Dtests.class}}}
  
- For example: 'ant test -Dtestpackage=search'
+ For example: {{{ant test -Dtests.class=*.search.*}}}
  
  === Running only a specific test class ===
- To run a specific test class, use -Dtestcase
+ To run a specific test class, use {{{-Dtestcase}}}
  
- For example: 'ant test -Dtestcase=TestIndexWriter'
+ For example: {{{ant test -Dtestcase=TestIndexWriter}}}
  
  === Running only a specific test method ===
- To run just a single method in a test, use -Dtestmethod
+ To run just a single method in a test, use {{{-Dtestmethod}}}
  
- For example: 'ant test -Dtestcase=TestIndexWriter -Dtestmethod=testDocCount'
+ 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 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.
+ 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.verbose ||increases verbosity of tests. Use this to get (potentially very loud) test output ||false ||{{{-Dtests.verbose=true}}} ||
- ||tests.infostream ||separately toggle infostream output from indexwriter and checkindex ||tests.verbose ||-Dtests.infostream=true ||
+ ||tests.infostream ||separately toggle infostream output from indexwriter and checkindex ||tests.verbose ||{{{-Dtests.infostream=true}}} ||
- ||tests.codec ||sets the FlexibleIndexing codec for the test to use ||random ||-Dtests.codec=SimpleText ||
+ ||tests.codec ||sets the FlexibleIndexing codec for the test to use ||random ||{{{-Dtests.codec=SimpleText}}} ||
- ||tests.postingsformat||sets the specific PostingsFormat to use for Lucene40 codec ||random||-Dtests.postingsformat=Pulsing ||
+ ||tests.postingsformat ||sets the specific PostingsFormat to use for Lucene40 codec ||random ||{{{-Dtests.postingsformat=Pulsing}}} ||
- ||tests.locale ||sets the JVM default locale for a test to run under ||random ||-Dtests.locale=ru_RU ||
+ ||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.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 ||random ||-Dtests.directory=FSDirectory ||
+ ||tests.directory ||sets the lucene directory impl for a test to use ||random ||{{{-Dtests.directory=FSDirectory}}} ||
- ||tests.multiplier ||multiplier to increase the work done by random tests ||1 ||-Dtests.multiplier=3 ||
+ ||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 ||
- ||tests.iter ||runs a test with multiple iterations ||1 ||-Dtests.iter=1000 ||
- ||tests.iter.min||together with 'tests.iter', runs a test at least N iterations and stops if the test fails||1||-Dtests.iter.min=10||
- ||tests.asserts.gracious||relax test framework's java-assertions-enabled requirement ||false||-Dtests.asserts.gracious=true||
+ ||tests.asserts.gracious ||relax test framework's java-assertions-enabled requirement ||false ||{{{-Dtests.asserts.gracious=true}}} ||