Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Automatic reset wiremock stubs #2160

Description

@maciekh

Hello,
Spring Cloud Contract WireMock by default resets stubs, scenarios, etc., after each test class.
Unfortunately, this prevents tests from running in parallel. Very often, when one test class finishes, it resets the stubs of other tests still running in a different thread.

Some time ago, @marcingrzejszczak introduced the flag wiremock.reset-mappings-after-each-test, which allows forcing a reset after each method.
Wouldn't it make sense to introduce a similar flag that allows disabling resets after each class?

In my opinion, these resets don't make sense at all.
If someone needs them, they can explicitly trigger a reset in @after method executed after each test/class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions