mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-28 07:51:42 +01:00
Fix test parallelization.
This commit is contained in:
committed by
Michelle Tang
parent
f6289bcfdd
commit
456d61a709
+9
-1
@@ -58,7 +58,15 @@ subprojects {
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 4).coerceAtLeast(1)
|
||||
if (name.contains("ScreenshotTest")) {
|
||||
// Compose preview screenshot testing does not support parallel execution.
|
||||
maxParallelForks = 1
|
||||
|
||||
// The plugin creates this task for every module, but most have no previews to validate.
|
||||
failOnNoDiscoveredTests = false
|
||||
} else {
|
||||
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 4).coerceAtLeast(1)
|
||||
}
|
||||
|
||||
// Raised for robolectric
|
||||
maxHeapSize = "2g"
|
||||
|
||||
Reference in New Issue
Block a user