Running WireMock in CI as a Standalone Server
In the previous post, everything ran embedded, inside a single test class’s lifecycle. That is the right default for unit and component level tests. It stops working once several services in a pipeline all need to talk to the same stubbed dependency, or once integration tests running outside the JVM, a Postman collection for example, need to hit the same mock. That is what WireMock’s standalone mode is for. Running WireMock Standalone The same WireMock artifact that ran embedded can run as its own process, listening on a real port like any other service. ...