Created
June 15, 2023 03:54
-
-
Save YuanLiou/b7e2a87744e98604af062c89b83eac04 to your computer and use it in GitHub Desktop.
Speed up gradle run unit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.withType<Test>().all { | |
testLogging { | |
events("passed", "skipped", "failed") | |
outputs.upToDateWhen { false } | |
showStandardStreams = true | |
} | |
maxParallelForks = Runtime.getRuntime().availableProcessors().div(2).coerceAtLeast(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment