Framework for E2E tests akka-http
Solution 1:
There are a bunch of ways to test a microservice developed using akka-http:
- Unit testing
- Functional / Integration testing
- E2E testing
- Load testing
Unit testing using route-testkit (https://doc.akka.io/docs/akka-http/current/routing-dsl/testkit.html)
Functional testing & E2E testing using Akka HTTP client API (https://doc.akka.io/docs/akka-http/current/client-side/index.html) with API contracts you can validate the status codes and response body.
Load testing can be achieved using a bunch of tools, specifically in Scala you can take a look at Gatling.