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

Support for parameterized tests #55

Open
tMaxx opened this issue May 12, 2020 · 0 comments
Open

Support for parameterized tests #55

tMaxx opened this issue May 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tMaxx
Copy link
Contributor

tMaxx commented May 12, 2020

Background
We have no support for injecting Knot.x configurations in parameterized tests. After doing #54 it should be possible in a single way, but there will still be cases where user needs to interact with Knot.x instance in some way.

Please explore available options and propose additional ways with how Knot.x can be used with parameterized tests. Please create or update the documentation as well.

Code example
Following code snippet currently won't work:

  @ParameterizedTest
  @ValueSource(strings = {"/picklist", "/record/get", "/record/set"})
  @KnotxApplyConfiguration("application.conf")
  public void testTokenCache(Vertx vertx, VertxTestContext testContext, String url) {
    // ...
  }

Possible enhancements

  • Injection of different configurations via custom parameter resolver/converter
  • Possibly other?
@tMaxx tMaxx added the enhancement New feature or request label May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant