You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/11/15 21:24:13 UTC

[jira] Commented: (LUCENE-2764) Allow tests to use random codec per field

    [ https://issues.apache.org/jira/browse/LUCENE-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932177#action_12932177 ] 

Robert Muir commented on LUCENE-2764:
-------------------------------------

Simon, just an idea:

can we give the randomprovider a special -D value, such as 'randomPerField', and enable this by default?
We should set the value to 'randomPerField' both in lucenetestcase (for IDEs) and in common-build.xml/etc (for ANT) to be consistent.

additionally, is it possible to give this thing a toString() or similar, to dump out the field->codec mapping?
This would be useful when tests fail: the 'global' codec is currently printed in the @afterClass of LuceneTestCase:
{noformat}
    // if tests failed, report some information back
    if (testsFailed)
      System.out.println("NOTE: test params are: codec=" + codec + 
        ", locale=" + locale + 
        ", timezone=" + (timeZone == null ? "(null)" : timeZone.getID()));
{noformat}


> Allow tests to use random codec per field
> -----------------------------------------
>
>                 Key: LUCENE-2764
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2764
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: Tests
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-2764.patch
>
>
> Since we now have a real per field codec support we should enable to run the tests with a random codec per field. When I change something related to codecs internally I would like to ensure that whatever combination of codecs (except of preflex) I use the code works just fine. I created a RandomCodecProvider in LuceneTestCase that randomly selects the codec for fields when it sees them the first time. I disabled the test by default to leave the old randomize codec support in as it was / is.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org