How to test a serverless API using AWS serverless Gradle test runner

Every project team sooner or later asks the question — how to test APIs? Do we need to write API tests? How can we write them? There are a lot of questions on this topic. Moreover, the answers for them are also varied and depend on each particular case.

Illia Saveliev
GreenM

--

Nowadays, a lot of solutions are using the microservices approach. They have a set of small APIs that communicate with each other. They get data from a database or other resources, apply some business logic on top of it, and return as an API response. So, you want to be sure that each of such APIs is working correctly, and they work well together.

It sounds like a complex task, but let’s see how to elaborate the testing approach for your project.

API Testing Strategies

We want to highlight two main testing strategies that can be considered for your API testing. As you know, the main problem here is not to write tests, it is rather how to deal with all the API’s dependencies? We see here two options: mock all external API dependencies, or do not mock anything, and just use real API deployment. You can find a short overview…

--

--

Illia Saveliev
GreenM

Software Architecture. Big Data. Cloud Technologies.