Wix Http Testkit is a library that will address many of the End-to-end testing concerns you might encounter.
Wix HTTP Testkit aims to be:
- Simple Testing REST services or starting mock/stub servers is very simple and requires very few lines of code.
- Fast Leveraging Akka-Http infrastructure, starting servers takes milliseconds.
- Integrated: Other than providing a set of DSLs to support composing and executing REST HTTP calls and creating and configuring web servers, it also contains out of the box matcher libraries for Specs2 to easily validate each aspect of the tested flow.
HTTP-testkit version 0.1.1 is available on Maven Central Repository. Scala versions 2.11.x and 2.12.x are supported.
Simply add the wix-http-testkit module to your build settings:
libraryDependencies += "com.wix" %% "http-testkit" % "0.1.1"
<dependencies>
<dependency>
<groupId>com.wix</groupId>
<artifactId>http-testkit_${scala.tools.version}</artifactId>
<version>0.1.1</version>
</dependency>
</dependencies>
- Rest Client: a declarative REST client Documentation.
- Simplicator Web Servers: Easily configurable web servers Documentation.
- Specs2 Matchers Suite: Comprahensive matcher suites Response Matchers and Request Matchers.
Ideas and feature requests welcome! Report an issue or contact the maintainer directly.