mirror of https://github.com/apache/lucene.git
Pass tests.timeoutSuite to junit4 if defined on command line or in user properties. This can be used to lower (or increase) the default timeout value. Example: -Dtests.timeoutSuite=5000! (5 seconds, note the exclamation mark -- this means to override the annotation defaults).
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1404033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
99a7dbb949
commit
f8d37b166f
|
@ -903,6 +903,7 @@
|
|||
<propertyref prefix="tests.maxfailures" />
|
||||
<propertyref prefix="tests.failfast" />
|
||||
<propertyref prefix="tests.badapples" />
|
||||
<propertyref prefix="tests.timeoutSuite" />
|
||||
</syspropertyset>
|
||||
|
||||
<!-- Pass randomized settings to the forked JVM. -->
|
||||
|
@ -1119,6 +1120,9 @@ ant -verbose test
|
|||
# Enabled automatically when running for a single test case.
|
||||
ant -Dtests.showSuccess=true test
|
||||
|
||||
# Change the default suite timeout to 5 seconds.
|
||||
ant -Dtests.timeoutSuite=5000! ...
|
||||
|
||||
# Display local averaged stats, if any (30 slowest tests).
|
||||
ant test-times -Dmax=30
|
||||
|
||||
|
|
Loading…
Reference in New Issue