-
-
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
Document compatibility with JUnit 4 TestRules #343
Comments
Great list, and... thanks for doing all of the research! |
This is related to #169. |
FYI: timeouts are supported in JUnit Jupiter via the |
Nice! I'll update the description and mark it complete when M3 becomes current. |
@smoyer64 Would you be interested to add a section that documents the migration strategy for rules to the User Guide? There are already sections for "Migration Tips" and "Limited JUnit 4 Rule Support". |
@marcphilipp I've started this task and, after thinking through how I'd like it to be organized, wanted to present my thoughts before getting too far ahead. It's my opinion that those using I've created the jupiter and vintage equivalents for ExpectedException as an example. Note that these classes are not yet annotated for inclusion in the documentation but they do pass spotless checks and execute successfully during the platform tests. The examples can be found at https://github.com/selesy/junit5/tree/issues/343-document-testrule-compatibility/documentation/src/test/java/example/testrule. Please comment/critique both my intended approach and the way I've named/structure the example classes. |
I think that's a very good approach. Please proceed! 🙂 |
Full steam ahead ... I think I'll open a PR that's linked to this issue and my fork so that it's easier for the team to review my work. I'll mark it WIP so that it's clear that it shouldn't be merged yet. |
@smoyer64, is this still in progress? |
@smoyer64 I've unassigned you and put this issue "up-for-grabs" for someone else to take over. |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. Thank you for your contribution. |
This issue has been automatically closed due to inactivity. If you have a good use case for this feature, please feel free to reopen the issue. |
The following is an analysis of which JUnit 4 TestRule functionality is provided by JUnit 5. This should be documented in an addendum to the User Guide.
partially accomplished using DisableIf/EnableIf, partially allowed via the use of @Tags as described in sections 3.7 Tagging and Filtering of the user guide. But is it completely covered?I was completely off base with this assessment. This@TestRule
allows you to disable a test rule if the JVM is in debug mode and has absolutely nothing to do with deciding what tests should be run.Related Issues
Related Blog Posts
The text was updated successfully, but these errors were encountered: