Skip to content

Instantly share code, notes, and snippets.

@brendonanderson
Created October 9, 2017 01:24
Show Gist options
  • Save brendonanderson/7a7ad72ffcc612e690848bb579c1ce26 to your computer and use it in GitHub Desktop.
Save brendonanderson/7a7ad72ffcc612e690848bb579c1ce26 to your computer and use it in GitHub Desktop.
Functional Test Task
task functionalTest(type: Test, dependsOn: [assemble, startServer]) {
testClassesDir = sourceSets.functionalTest.output.classesDir
classpath = sourceSets.functionalTest.runtimeClasspath
doFirst {
systemProperty('spring.kafka.producer.bootstrap-servers', kafkaEmbedded.getBrokersAsString())
systemProperty('server.port', bootPort)
}
}
functionalTest.finalizedBy('stopServer')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment