-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
No runner equivalent #1239
Comments
Hi @rmannibucau, We don't have any plans to support the Instead, the extension model for JUnit Jupiter is built on the concept of composable extensions. Thus, if you have concrete proposals for new extension APIs in JUnit Jupiter, please open a new issue (or issues) with your proposals and we would be happy to discuss them. Thanks! |
Closing this issue as invalid since the JUnit 4 |
@sbrannen it is not about supporting runners but the same feature. How can I use a custom execution logic not based on @testable? Here is the junit4 flavor: https://github.com/Talend/component-runtime/blob/master/component-runtime-testing/component-runtime-junit/src/main/java/org/talend/sdk/component/junit/delegate/DelegatingRunner.java it allows to inherit from the testing model of the referenced runner and decorate it with several features, including executing the full test class (means beforeall, before each, test, after each, after all) N times, whereas JUnit 5 only allows to do it for tests and not the full lifecycle. This is impacting cause you can't recycle as much the resource (for each case). See repeatead test for instance, you execute the test N times but you cant have a beforeall/afterall or all tests done with the same setup at once. What i'd like to achieve is: Run #1 (system.setproperty("foo", "1"): if the init/clear is impacting (classloader, caching, init of a database etc...) this last lifecycle is better than: before all |
This will become possible once #871 is implemented which we intend to do for 5.2. |
What was nice with runners was to be able to delegate a class model logic to another runner and inherit from a full lifecycle. With JUnit 5 the extensions don't allow that and enforces you to integrate in the existing lifecycle which is a lot of work for custom @test.
Only alternative is an engine but is too impacting in terms of setup for end users.
The text was updated successfully, but these errors were encountered: