You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension can be found in the JCenter repository. It has transitive dependencies on junit-jupiter-api and junit-dataprovider. To run the tests you will at least need an JUnit 5 engine dependency.
Features
Supports @DataProvider and @UseDataProvider on methods with parameters annotated by @TestTemplate. Creates dynamic tests based on test templates.
Limitations
Widening calls (like data provider with int for a method with long parameter) will fail with a ParameterResolutionException.
Custom resolvers of @UseDataProvider are ignored.
Migration
Replace the old JUnit annotations by JUnit5 substitutes (typically an import change like org.junit.Test to org.junit.jupiter.api.TestTemplate.
Access to FrameworkMethod in @DataProvider has to be replaced by Executable.
Replace the @RunWith annotation of the test class by @ExtendWith(DataProviderExtension.class).
Providing a Custom DataConverter
Inherit from the DataProviderExtension and pass a custom DataConverter to the constructor.
Use the new extension in the @ExtendWith annotation.