Testing api endpoints in BDD style

305 views
Skip to first unread message

junaid

unread,
Apr 4, 2016, 11:01:36 AM4/4/16
to golang-nuts
Dear Team,

I am a new here so please bare with me if my questions are too naive.

I am a tester, the application I am testing is developed in GO with REST API endpoints. I have manually tested these API endpoints using PAW.

I want to automated these manual tests in BDD style framework preferably with cucumber selenium. We do not want to use any proprietary tools.

My questions are the following:
1. What is the recommended approach in above scenario?
2. Are there any existing frameworks that I can refer to?

Any useful pointers in right direction is appreciated.

Thanks in advance,
Junaid K

George Lestaris

unread,
Apr 7, 2016, 12:08:13 PM4/7/16
to junaid, golang-nuts
Hello Junaid,

I would suggest you have a look in Ginkgo: https://onsi.github.io/ginkgo. We use it in all the CloudFoundry teams both for unit testing and integration/acceptance testing at the API level. It works well with gomega assertion library: http://onsi.github.io/gomega/, which offers the `ghttp` client (http://onsi.github.io/gomega/#ghttp-testing-http-clients) to test HTTP endpoints.

Regards,
George

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages