You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2012/06/28 12:57:43 UTC
[jira] [Updated] (LUCENE-4160) Bring back the functional equivalent
of tests.iters.min
[ https://issues.apache.org/jira/browse/LUCENE-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dawid Weiss updated LUCENE-4160:
--------------------------------
Attachment: LUCENE-4160.patch
Patch against trunk.
{noformat}
ant -Dtests.maxfailures=M
{noformat}
will cause any test after the first M failures to be assumption-ignored. Example:
{noformat}
[junit4] IGNOR/A 0.03s | TestBuhu.testFailSometimes {#96 seed=[15604D6381DA415B:BE5164F081683030]}
[junit4] > Assumption #1: Ignored, failures limit reached (1 >= 1).
[junit4] IGNOR/A 0.01s | TestBuhu.testFailSometimes {#97 seed=[15604D6381DA415B:E515E49B8D52E84E]}
[junit4] > Assumption #1: Ignored, failures limit reached (1 >= 1).
[junit4] IGNOR/A 0.02s | TestBuhu.testFailSometimes {#98 seed=[15604D6381DA415B:2128D6F71D04F74D]}
[junit4] > Assumption #1: Ignored, failures limit reached (1 >= 1).
[junit4] IGNOR/A 0.01s | TestBuhu.testFailSometimes {#99 seed=[15604D6381DA415B:EBBC938E1A402A5E]}
[junit4] > Assumption #1: Ignored, failures limit reached (1 >= 1).
[junit4] > (@AfterClass output)
[junit4] 2> NOTE: test params are: codec=Lucene40: {}, sim=RandomSimilarityProvider(queryNorm=false,coord=true): {}, locale=hu, timezone=US/Arizona
[junit4] 2> NOTE: Linux 3.0.0-21-generic amd64/Oracle Corporation 1.7.0 (64-bit)/cpus=2,threads=1,free=50888552,total=78512128
[junit4] 2> NOTE: All tests run in this JVM: [TestBuhu]
[junit4] 2>
[junit4] Completed in 1.44s, 100 tests, 1 failure, 91 skipped <<< FAILURES!
[junit4]
[junit4] JVM J0: 0.70 .. 3.16 = 2.47s
[junit4] Execution time total: 3.21 sec.
[junit4] Tests summary: 1 suite, 100 tests, 1 failure, 91 ignored (91 assumptions)
{noformat}
> Bring back the functional equivalent of tests.iters.min
> -------------------------------------------------------
>
> Key: LUCENE-4160
> URL: https://issues.apache.org/jira/browse/LUCENE-4160
> Project: Lucene - Java
> Issue Type: Bug
> Components: general/test
> Reporter: Dawid Weiss
> Assignee: Dawid Weiss
> Priority: Trivial
> Fix For: 5.0
>
> Attachments: LUCENE-4160.patch
>
>
> What is needed is effectively saying: "repeat this test N times, but stop once you hit a failure".
> Previously it was "tests.iters.min=X" which is (still) kind of confusing to me because I don't understand how "X" is related to the original question.
> I propose to implement a boolean "tests.fastfail" which would ignore any tests running on the same JVM after the first failure has been hit.
> Those with fond memories of "tests.iters.min" speak up, please.
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org