https://kotlinlang.org logo
#test
Title
c

Chris Jobling

05/21/2021, 3:37 PM
Good Morning / Good Afternoon. We are looking to do end-to-end testing for our Kotlin microservices. We have previously used https://cucumber.io/docs/installation/kotlin/ and i am wondering if anyone has used any different tools/tech which could be of advantage to us. Thanks
t

tddmonkey

05/25/2021, 8:52 AM
When you say end to end, what do you mean? Are you talking more of a platform/system wide test that involves multiple microservices? Is anyone apart from devs/QA ever going to read/write them?
c

Chris Jobling

05/25/2021, 9:11 AM
Yes thats is correct system wide test that involves multiple microservices (around 5/6) using docker to create postgresdb /elastic / rabbit. Only devs would be using writing / reviewing the tests. We have used cucumber in the past which has been fine but just thinking if theres is anything new and exciting out there.
t

tddmonkey

05/25/2021, 10:33 AM
I currently use SerenityBDD to drive these kinds of tests. You can use Cucumber syntax, but the ecosystem is just really nice. It has built in support with RestAssured and the reports are really useful for digging into failures.
c

Chris Jobling

05/25/2021, 1:01 PM
Thanks for this @tddmonkey, i will take a look 🙂
m

mlvandijk

06/02/2021, 5:03 AM
SerenityBDD uses Cucumber under the hood though. Using Cucumber directly would give you more up to date Cucumber versions (ie not depending on Serenity to update the one they use). And you can still integrate with RestAssured if you want, or use any other way to call rest endpoints.
t

tddmonkey

06/02/2021, 8:50 AM
It doesn’t have to use Cucumber though, you have a choice of implementations. It’s horses for courses really - for what I was doing I just wanted a nice out of the box solution and didn’t want to spend time wiring all the bits together.
m

mlvandijk

06/03/2021, 8:01 AM
That's a valid use case. Depends on what you want. Just offering another perspective.
3 Views