Unverified Commit 5530e102 authored by Sebastian Kaspari's avatar Sebastian Kaspari Committed by GitHub
Browse files

For #16302 - Use larger heap size when running unit tests and fork new process...

For #16302 - Use larger heap size when running unit tests and fork new process after every 80 test classes. (#16526)
parent f3edce5f
......@@ -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"
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment