mirror of https://github.com/apache/kafka.git
KAFKA-1885 Upgrade junit dependency in core to 4.6 version to allow running individual test methods via gradle command line; reviewed by Neha Narkhede
This commit is contained in:
parent
4aa3dab3de
commit
0b171dee1f
|
@ -34,6 +34,11 @@ Follow instuctions in http://kafka.apache.org/documentation.html#quickstart
|
|||
### Running a particular unit test ###
|
||||
./gradlew -Dtest.single=RequestResponseSerializationTest core:test
|
||||
|
||||
### Running a particular test method within a unit test ###
|
||||
./gradlew core:test --tests kafka.api.test.ProducerFailureHandlingTest.testCannotSendToInternalTopic
|
||||
./gradlew clients:test --tests org.apache.kafka.clients.producer.MetadataTest.testMetadataUpdateWaitTime
|
||||
|
||||
|
||||
### Running a particular unit test with log4j output ###
|
||||
change the log4j setting in either clients/src/test/resources/log4j.properties or core/src/test/resources/log4j.properties
|
||||
./gradlew -i -Dtest.single=RequestResponseSerializationTest core:test
|
||||
|
|
|
@ -209,7 +209,7 @@ project(':core') {
|
|||
compile 'com.yammer.metrics:metrics-core:2.2.0'
|
||||
compile 'net.sf.jopt-simple:jopt-simple:3.2'
|
||||
|
||||
testCompile 'junit:junit:4.1'
|
||||
testCompile 'junit:junit:4.6'
|
||||
testCompile 'org.easymock:easymock:3.0'
|
||||
testCompile 'org.objenesis:objenesis:1.2'
|
||||
testCompile project(':clients')
|
||||
|
|
Loading…
Reference in New Issue