Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide leIncrementalCapture feature in hoverfly-java-junit5 #254

Closed
patown opened this issue Feb 24, 2021 · 0 comments · Fixed by #255
Closed

provide leIncrementalCapture feature in hoverfly-java-junit5 #254

patown opened this issue Feb 24, 2021 · 0 comments · Fixed by #255

Comments

@patown
Copy link
Contributor

patown commented Feb 24, 2021

In Junit4, we have IncrementalCapture like this,

@ClassRule
public static HoverflyRule hoverflyRule = HoverflyRule.inCaptureMode("simulation.json",
localConfigs()
.enableIncrementalCapture());

But it seems there is no such attribute in io.specto.hoverfly.junit5.api.HoverflyConfig

so there is no way to use this in @HoverflyCapture .

Please provide this feature so we can have the case as below,

@HoverflyCapture(path = "build/resources/test/hoverfly",
filename = "captured-simulation.json",
config = @HoverflyConfig(captureAllHeaders = true, proxyLocalHost = true,enableIncrementalCapture=true))
@ExtendWith(HoverflyExtension.class)
class CaptureTests {
// ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant