Skip to content
SPECIFICTION
Get listed

Microcks vs MockWebServer

Microcks

microcks.io

MockWebServer

square.github.io

Side by side

FigureMicrocksMockWebServer
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
WindowsYes—
macOSYes—
LinuxYes—
Android—Yes
APIYes—
Self-hostedYes—
Plans published12
Spec score · API Mocking Tools8.9 (#3)7.7 (#14)
IntegrationsOfficial automation integrations include GitHub Actions, Jenkins, GitLab CI and Tekton Pipelines.Optional artifacts provide JUnit 4 and JUnit 5 integrations, while the core mockwebserver3 module has no JUnit dependency.
ProtocolsIt supports OpenAPI, AsyncAPI, gRPC/Protobuf, GraphQL and SOAP.OkHttp describes MockWebServer as a library for testing HTTP, HTTPS, and HTTP/2 clients.
PurposeMicrocks is a tool for mocking and testing APIs and microservices.MockWebServer is a library for testing HTTP, HTTPS, and HTTP/2 clients.
SecurityMicrocks uses Keycloak for identity, authentication, permissions, and API endpoint protection, with OpenID Connect for user authentication.The docs state that MockWebServer can test HTTP, HTTPS, and HTTP/2 clients; they do not state security certifications or compliance claims.

Plans

Microcks

  • Microcks (open-source distribution)Free

Microcks pricing →

MockWebServer

  • MockWebServerFree
  • Open sourceFree

MockWebServer pricing →

In their own words

Microcks

Microcks is an open-source tool for mocking and testing APIs and microservices. It works with OpenAPI, AsyncAPI, gRPC/Protobuf, GraphQL schemas, and SOAP, and can build mock responses from examples, generate realistic data, or alter mock data and responses dynamically. It also checks provider and consumer contracts against live implementations and specification versions, and automates checks in CI/CD pipelines with integrations for GitHub Actions, Jenkins, GitLab CI, and Tekton. Containerized deployment supports on-premises, cloud, and developer-laptop use; its Uber distribution is intended for laptop work and unit tests, using ephemeral in-memory MongoDB. The free, community marketplace for API mocks and test suites is enabled by default. Microcks is a CNCF incubating project, with a listed price of free. The public demo is read-only and cannot import APIs or change artifacts. Documentation cautions against production use of the all-managed Kubernetes setup because its single Keycloak and MongoDB instances are not tuned for scalability or security best practices.

Visit microcks.io

MockWebServer

MockWebServer is a free, open-source Android test library for developers checking HTTP clients. It provides a scriptable local server where tests supply canned responses and inspect requests made during HTTP, HTTPS, or HTTP/2 calls. Recorded requests expose method, path, HTTP version, body, headers, and chunk sizes for verification. Responses can be queued in sequence or generated by a Dispatcher that applies a request-by-request policy. Tests can throttle responses to imitate slow networks, and socket policies can keep connections open, disconnect during request or response bodies, or send no response. The README includes Java and Kotlin examples. The documented dependency is com.squareup.okhttp3:mockwebserver3:5.5.0, available through Maven Central. MockWebServer is licensed under Apache License 2.0 and is intended for internal and basic testing of apps using OkHttp. The project says it is not a full-featured standalone HTTP testing library and is not actively developed for new features; it suggests MockServer when requirements exceed its scope.

Visit square.github.io