Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion DEVELOPER_GUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions async-query-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ spotless {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions async-query/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dependencies {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform {
includeEngines("junit-jupiter")
}
Expand Down
1 change: 1 addition & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ spotless {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions datasources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions legacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions opensearch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pitest {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ dependencies {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
include '**/*Test.class'
testLogging {
events "passed", "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions ppl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ spotless {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
Expand Down
1 change: 1 addition & 0 deletions prometheus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions protocol/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ configurations.all {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
Expand Down
1 change: 1 addition & 0 deletions sql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ spotless {
}

test {
maxParallelForks = Runtime.runtime.availableProcessors()
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
Expand Down
Loading