For #16302 - Use larger heap size when running unit tests and fork new process after every 80 test classes. (#16526)

upstream-sync
Sebastian Kaspari 4 years ago committed by GitHub
parent f3edce5f16
commit 5530e102f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -177,6 +177,17 @@ android {
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
// We keep running into memory issues when running our tests. With this config we
// reserve more memory and also create a new process after every 80 test classes. This
// is a band-aid solution and eventually we should try to find and fix the leaks
// instead. :)
maxParallelForks = 2
forkEvery = 80
maxHeapSize = "2048m"
minHeapSize = "1024m"
}
}
}

Loading…
Cancel
Save