A Swift mock server backed by Vapor for general purpose XCUI Testing Built using Swift and Vapor framework, ensuring seamless integration and high performance.
Add package dependency:
dependencies: [
.package(url: "https://github.com/AdevintaSpain/Vaporiser.git", from: "1.0.0"),
],
Simple usage example can be viewed here
- Async start the server:
try server.start()
- Add mocks using
server.store(
mock: MockData(
path: "path/mock/responds/to",
responseBody: Data,
method: HTTPMethod
)
)
- Stop server on
tearDown
server.stop()
Example project uses this server, which is being mocked in the XCUI tests.
This project is not meant to exemplify architecture, rather to examplify a basic feature of the mock server used in XCUI tests.