From 7ffd6934adfa21d17558fa49149cfda17f1acdc4 Mon Sep 17 00:00:00 2001 From: Evanston Zhou <84255167+ezhou413@users.noreply.github.com> Date: Wed, 27 Aug 2025 00:59:31 -0500 Subject: [PATCH] MINOR: Add example integration test commands to README (#20413) Adds example commands for running integration tests from the command line. Reviewers: Chia-Ping Tsai --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8b5fe4c332e..06c0e3921eb 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Follow instructions in https://kafka.apache.org/quickstart ### Running a particular unit/integration test ### ./gradlew clients:test --tests RequestResponseTest + ./gradlew streams:integration-tests:test --tests RestoreIntegrationTest ### Repeatedly running a particular unit/integration test with specific times by setting N ### N=500; I=0; while [ $I -lt $N ] && ./gradlew clients:test --tests RequestResponseTest --rerun --fail-fast; do (( I=$I+1 )); echo "Completed run: $I"; sleep 1; done @@ -59,6 +60,7 @@ Follow instructions in https://kafka.apache.org/quickstart ### Running a particular test method within a unit/integration test ### ./gradlew core:test --tests kafka.api.ProducerFailureHandlingTest.testCannotSendToInternalTopic ./gradlew clients:test --tests org.apache.kafka.clients.MetadataTest.testTimeToNextUpdate + ./gradlew streams:integration-tests:test --tests org.apache.kafka.streams.integration.RestoreIntegrationTest.shouldRestoreNullRecord ### Running a particular unit/integration test with log4j output ### By default, there will be only small number of logs output while testing. You can adjust it by changing the `log4j2.yaml` file in the module's `src/test/resources` directory.