-
Notifications
You must be signed in to change notification settings - Fork 67
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
Migrate ConfigurationSessionTests in configuration package to JUnit 5 #654
base: master
Are you sure you want to change the base?
Migrate ConfigurationSessionTests in configuration package to JUnit 5 #654
Conversation
Test Results 672 files +12 672 suites +12 1h 15m 15s ⏱️ -11s Results for commit d21c556. ± Comparison against base commit f582f10. This pull request removes 1180 and adds 1179 tests. Note that renamed tests count towards both.
This pull request removes 4 skipped tests and adds 4 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
ecd2ae6
to
f92323f
Compare
The test classes EclipseStarterConfigurationAreaTest, MovableConfigurationAreaTest, and ReadOnlyConfigurationAreaTest rely on the JUnit-3-specific ConfigurationSessionTest. The SessionTestExtension has been introduced as a JUnit-5-based replacement. This change adapts the test classes to be executed with JUnit 5, using the SessionTestExtension. It also adapts the according test suites to be executed with JUnit 5.
f92323f
to
d21c556
Compare
Thanks Heiko for this. Edit: After looking at it again, the order is indeed necessary. |
Thank you, Hannes! |
The test classes
EclipseStarterConfigurationAreaTest
,MovableConfigurationAreaTest
, andReadOnlyConfigurationAreaTest
rely on the JUnit-3-specificConfigurationSessionTest
. TheSessionTestExtension
has been introduced as a JUnit-5-based replacement.This change adapts the test classes to be executed with JUnit 5, using the
SessionTestExtension
. It also adapts the according test suites to be executed with JUnit 5. I have only changed those test suites to JUnit 5 that are relevant for the updates tests. It would also be possible to just batch-migrate all test suite in a separate, preparatory PR. Let me know if that's desired.This contribution serves two purposes:
ConfigurationSessionTest
), see Migrate ResourceTests to JUnit 4/5 eclipse-platform/eclipse.platform#903I will also provide PRs for updating the other
ConfigurationSessionTest
usages in Equinox once this update for the test classes in theconfiguration
package has been approved.