mirror of https://github.com/apache/kafka.git
MINOR: Add example integration test commands to README (#20413)
Adds example commands for running integration tests from the command line. Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
8d93d1096c
commit
7ffd6934ad
|
@ -52,6 +52,7 @@ 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
|
||||||
|
./gradlew streams:integration-tests:test --tests RestoreIntegrationTest
|
||||||
|
|
||||||
### Repeatedly running a particular unit/integration test with specific times by setting N ###
|
### 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
|
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 ###
|
### 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
|
||||||
./gradlew clients:test --tests org.apache.kafka.clients.MetadataTest.testTimeToNextUpdate
|
./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 ###
|
### 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.
|
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.
|
||||||
|
|
Loading…
Reference in New Issue