This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3e093062d2f MINOR: Add an instruction to run test with specific times 
(#17678)
3e093062d2f is described below

commit 3e093062d2f1975798175d2f8439bafd9f46e4af
Author: TaiJuWu <[email protected]>
AuthorDate: Wed Nov 6 10:49:37 2024 +0800

    MINOR: Add an instruction to run test with specific times (#17678)
    
    Reviewers: Chia-Ping Tsai <[email protected]>
---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4457206be23..b7221e12df8 100644
--- a/README.md
+++ b/README.md
@@ -44,8 +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=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

Reply via email to