Knotx / knotx-junit5

JUnit 5 support and extensions for Vert.x projects
https://knotx.io
Apache License 2.0
0 stars 4 forks source link

Support for parameterized tests #55

Open tMaxx opened 4 years ago

tMaxx commented 4 years ago

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