diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-07-23 15:12:47 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-07-26 12:02:08 +0300 |
commit | 4aacec24ea306650df34080639eb5cea8eafd878 (patch) | |
tree | 621709242f01019bf8a8847628ab3d54cc4407ff /build.gradle | |
parent | 04219ae63858373bf7db9aa262df6782a50aeb7a (diff) |
Use multithreading for unit test execution
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 76184985..39b29374 100644 --- a/build.gradle +++ b/build.gradle @@ -21,3 +21,9 @@ allprojects { maven { url "https://jitpack.io" } } } + +subprojects { + tasks.withType(Test) { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + } +}
\ No newline at end of file |