From 4a39fd294804a9f2284fed6b4d72c9ce2d19e337 Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Mon, 4 Nov 2024 01:00:21 +0000 Subject: [PATCH 1/2] improve readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4457206be237..8fa4b75a9913 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ Follow instructions in https://kafka.apache.org/quickstart ### Repeatedly running a particular unit/integration test ### I=0; while ./gradlew clients:test --tests RequestResponseTest --rerun --fail-fast; do (( I=$I+1 )); echo "Completed run: $I"; sleep 1; done +### Repeatedly running a particular unit/integration test with specific times by setting N ### + N=10; 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 + ### 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 From 8a2e55b3d6d273de0cb2de762db650167f1b148a Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Tue, 5 Nov 2024 03:37:41 +0000 Subject: [PATCH 2/2] address comments --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 8fa4b75a9913..b7221e12df8b 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,8 @@ Follow instructions in https://kafka.apache.org/quickstart ### Running a particular unit/integration test ### ./gradlew clients:test --tests RequestResponseTest -### Repeatedly running a particular unit/integration test ### - I=0; while ./gradlew clients:test --tests RequestResponseTest --rerun --fail-fast; do (( I=$I+1 )); echo "Completed run: $I"; sleep 1; done - ### Repeatedly running a particular unit/integration test with specific times by setting N ### - N=10; 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 + 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 ### Running a particular test method within a unit/integration test ### ./gradlew core:test --tests kafka.api.ProducerFailureHandlingTest.testCannotSendToInternalTopic