Framework for E2E tests akka-http

Solution 1:

There are a bunch of ways to test a microservice developed using akka-http:

  1. Unit testing
  2. Functional / Integration testing
  3. E2E testing
  4. 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.