diff --git a/DEVELOPER_GUIDE.rst b/DEVELOPER_GUIDE.rst index 4b525eed080..441dd9ea060 100644 --- a/DEVELOPER_GUIDE.rst +++ b/DEVELOPER_GUIDE.rst @@ -225,7 +225,9 @@ Building and Running Tests Gradle Build ------------ -Most of the time you just need to run ./gradlew build which will make sure you pass all checks and testing. While you're developing, you may want to run specific Gradle task only. In this case, you can run ./gradlew with task name which only triggers the task along with those it depends on. Here is a list for common tasks: +Most of the time you just need to run ``./gradlew build`` which will make sure you pass all checks and testing. While you're developing, you may want to run specific Gradle task only. In this case, you can run ./gradlew with task name which only triggers the task along with those it depends on. Here is a list for common tasks: + +For faster local iterations, the build can skip integration and doctests. ``./gradlew build --parallel -x integTest -x doctest``. .. list-table:: :widths: 30 50 diff --git a/async-query-core/build.gradle b/async-query-core/build.gradle index d222952d118..dd88ea1fd8c 100644 --- a/async-query-core/build.gradle +++ b/async-query-core/build.gradle @@ -85,6 +85,7 @@ spotless { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "skipped", "failed" diff --git a/async-query/build.gradle b/async-query/build.gradle index eb22fad4a5d..a1613b5c419 100644 --- a/async-query/build.gradle +++ b/async-query/build.gradle @@ -53,6 +53,7 @@ dependencies { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform { includeEngines("junit-jupiter") } diff --git a/core/build.gradle b/core/build.gradle index aa15c7a83dd..b5d2a7da9f0 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -94,6 +94,7 @@ spotless { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "skipped", "failed" diff --git a/datasources/build.gradle b/datasources/build.gradle index 7da355b142c..cdea790bf97 100644 --- a/datasources/build.gradle +++ b/datasources/build.gradle @@ -38,6 +38,7 @@ dependencies { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "skipped", "failed" diff --git a/legacy/build.gradle b/legacy/build.gradle index a9ade41dacb..94489b3de20 100644 --- a/legacy/build.gradle +++ b/legacy/build.gradle @@ -84,6 +84,7 @@ compileTestJava { // TODO: Need to update integration test to use OpenSearch test framework test { + maxParallelForks = Runtime.runtime.availableProcessors() include '**/*Test.class' exclude 'org/opensearch/sql/intgtest/**' // Gradle runs unit test using a working directory other and project root diff --git a/opensearch/build.gradle b/opensearch/build.gradle index e7566ef6a98..f41eac0a0fd 100644 --- a/opensearch/build.gradle +++ b/opensearch/build.gradle @@ -85,6 +85,7 @@ pitest { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "skipped", "failed" diff --git a/plugin/build.gradle b/plugin/build.gradle index 353256750f2..3531b01ded5 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -172,6 +172,7 @@ dependencies { } test { + maxParallelForks = Runtime.runtime.availableProcessors() include '**/*Test.class' testLogging { events "passed", "skipped", "failed" diff --git a/ppl/build.gradle b/ppl/build.gradle index 1d7c2ec267e..047790b523c 100644 --- a/ppl/build.gradle +++ b/ppl/build.gradle @@ -86,6 +86,7 @@ spotless { } test { + maxParallelForks = Runtime.runtime.availableProcessors() testLogging { events "passed", "skipped", "failed" exceptionFormat "full" diff --git a/prometheus/build.gradle b/prometheus/build.gradle index b570028b777..fdf0783cfbd 100644 --- a/prometheus/build.gradle +++ b/prometheus/build.gradle @@ -32,6 +32,7 @@ dependencies { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "passed", "skipped", "failed" diff --git a/protocol/build.gradle b/protocol/build.gradle index 4feb93b20e2..a52cce66c93 100644 --- a/protocol/build.gradle +++ b/protocol/build.gradle @@ -49,6 +49,7 @@ configurations.all { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "passed", "skipped", "failed" diff --git a/sql/build.gradle b/sql/build.gradle index c771b5af5ce..bd5092bf4f4 100644 --- a/sql/build.gradle +++ b/sql/build.gradle @@ -78,6 +78,7 @@ spotless { } test { + maxParallelForks = Runtime.runtime.availableProcessors() useJUnitPlatform() testLogging { events "passed", "skipped", "failed"