This is a direct way to implement integrations tests in a sbt project.
Requirements
Probando.scala
andDockerKafkaService.scala
must be inproject-root/src/it/scala
folder. In this example I located them intest-project/src/it/scala/me.rafaavila
- As you can see in
build.sbt
there is only one project which is based on sbtIntegrationTest
default setting.
Inspiration
I did read this ovo energy blog post then I decided to go for it but with a dependecy the project I'm workin on right now has (Kafka).