[
https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161946#comment-13161946
]
Hoss Man commented on LUCENE-3615:
----------------------------------
This reminds me of something i kept wanting to talk to Dawid about after his
random testing talk at eurocon but didn't get a chance and then promptly forgot
about.
rather then having "@Weekly" or "@Slow" (or even "@Nightly") annotations, we
should just use an "@Weight(Integer)" annotation indicating how "heavy" a test
is (tests w/o an @Weight annotation would be treated as if they had an
"@Weight(1)" annotation). The options for running tests would then let you
specify the min/max weight for the tests you want to run, and instead of a
"boolean isNightly()" there could be an "int maxTestWeight()" method that would
factor into methods like "rarely()" and "usually()"
So most tests would have no annotation, tests that currently use @Nightly would
get @Weight(10) (or 5, or 100, or whatever) and tests like 2BTerms might get
@Weight(10000).
while the default "ant test" might use {{-Dtest.weight.min=1
-Dtest.weight.max=10}} so developers and the jenkins post-commit build would
run "most" tests, the "test only" jenkins build might be run with
{{-Dtest.weight.min=1 -Dtest.weight.max=1}} to only run the really fast test in
a rapid fire, and a nightly jenkins run could use {{-Dtest.weight.min=1
-Dtest.weight.max=100}} and a weekly (or monthly, or whatever) run might use
{{-Dtest.weight.min=100 -Dtest.weight.max=100000}} (ie: skip the quick tests
and just run the heavy shit)
> Make it easier to run Test2BTerms
> ---------------------------------
>
> Key: LUCENE-3615
> URL: https://issues.apache.org/jira/browse/LUCENE-3615
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only
> way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test
> framework
> # Add some new annotations that mark it as slow or weekly or something like
> that and have the test target ignore @slow (or whatever) by default, but can
> also turn it on.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]