mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 18:18:38 +00:00
Only print the slowest tests at the end of a successful run. Correct verbose mode to parse string switch correctly.
This commit is contained in:
parent
02c79dd211
commit
eeb1c9abf6
@ -5,7 +5,7 @@ def verboseModeHookInstalled = false
|
||||
|
||||
allprojects {
|
||||
plugins.withType(JavaPlugin) {
|
||||
def verboseMode = propertyOrDefault("tests.verbose", "false")
|
||||
def verboseMode = Boolean.parseBoolean(propertyOrDefault("tests.verbose", "false"))
|
||||
|
||||
project.ext {
|
||||
testsWorkDir = file("${buildDir}/tmp/tests-cwd")
|
||||
|
@ -15,8 +15,8 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
gradle.buildFinished {
|
||||
if (allTests) {
|
||||
gradle.buildFinished { result ->
|
||||
if (allTests && result.getFailure() == null) {
|
||||
def slowest = allTests
|
||||
.sort { a, b -> b.duration.compareTo(a.duration) }
|
||||
.take(10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user