-
Notifications
You must be signed in to change notification settings - Fork 149
Resources / Runtime tests: Do not depend on higher-level plug-ins. #2161
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
Resources / Runtime tests: Do not depend on higher-level plug-ins. #2161
Conversation
This pull request changes some projects for the first time in this development cycle.
An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patch
Further information are available in Common Build Issues - Missing version increments. |
String MULTI_FILT_ID = "org.eclipse.core.resources.regexFilterMatcher"; | ||
String FILT_ARG = "foo.*"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must confess I don't understand what this actually does and where it is needed in the test but would trust your analysis here and it looks much more understandable than the previous version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the test basically just wants any <filteredResources><filter>...
in the .project
metadata. And we should use one here that is actually known here (or upstream) :)
...re.tests.runtime/src/org/eclipse/core/tests/internal/preferences/PreferencesServiceTest.java
Outdated
Show resolved
Hide resolved
...re.tests.runtime/src/org/eclipse/core/tests/internal/preferences/PreferencesServiceTest.java
Show resolved
Hide resolved
* PreferencesServiceTest is not deterministic but its behavior changes depending on the presence of downstream plug-in org.eclipse.core.resources. Take this into account. * IResourceTest should not depend on downstream plug-in org.eclipse.ui.ide (even inside a downstream repository). Use a different (upstream) filter provider in the unit test instead. These downstream plug-ins are currently only visible because Tycho adds the full-blown UI test harness to the target platform unconditionally, even if there is no such actual dependency [1]. This is a cleanup in preparation for [2]. [1] eclipse-tycho/tycho#5349 [2] eclipse-tycho/tycho#5362
58e6c5b
to
6b340ef
Compare
PreferencesServiceTest is not deterministic but its behavior changes depending on the presence of downstream plug-in org.eclipse.core.resources. Take this into account.
IResourceTest should not depend on downstream plug-in org.eclipse.ui.ide (even inside a downstream repository). Use a different (upstream) filter provider in the unit test instead.
These downstream plug-ins are currently only visible because Tycho adds the full-blown UI test harness to the target platform unconditionally, even if there is no such actual dependency [1]. This is a cleanup in preparation for [2].
[1] eclipse-tycho/tycho#5349
[2] eclipse-tycho/tycho#5362