mirror of https://github.com/apache/kafka.git
MINOR: Add an instruction to run test with specific times (#17678)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
695f3aa03c
commit
3e093062d2
|
@ -44,8 +44,8 @@ Follow instructions in https://kafka.apache.org/quickstart
|
||||||
### Running a particular unit/integration test ###
|
### Running a particular unit/integration test ###
|
||||||
./gradlew clients:test --tests RequestResponseTest
|
./gradlew clients:test --tests RequestResponseTest
|
||||||
|
|
||||||
### Repeatedly running a particular unit/integration test ###
|
### Repeatedly running a particular unit/integration test with specific times by setting N ###
|
||||||
I=0; while ./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 ###
|
### Running a particular test method within a unit/integration test ###
|
||||||
./gradlew core:test --tests kafka.api.ProducerFailureHandlingTest.testCannotSendToInternalTopic
|
./gradlew core:test --tests kafka.api.ProducerFailureHandlingTest.testCannotSendToInternalTopic
|
||||||
|
|
Loading…
Reference in New Issue