Skip to content
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

Mark test source folders as such #196

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

akurtakov
Copy link
Contributor

As test harness plugin already does it and this fixes compilation.

Signed-off-by: Alexander Kurtakov akurtako@redhat.com

As test harness plugin already does it and this fixes compilation.

Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
@mickaelistria
Copy link
Contributor

I think this change is actually not bringing best nor even expected outcome and that for OSGi bundles, "tests" scope should never be used for the exported packages. I let @laeubi provide more details while I'm on PTO ;)

@laeubi
Copy link
Member

laeubi commented May 13, 2021

It depends a bit what one wants to archive with that, so whats the goal of this change? Mark source folders as test makes mostly sense if there is also some "non test folders".

@akurtakov
Copy link
Contributor Author

So the dependency in platform marked it as test dependency https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/tests/org.eclipse.ui.tests.harness/.classpath . Thus these bundles will not find tests.harness classes as they are available only for other test source folders and fail compilation if o.e.ui.tests.harness bundle is imported from git in the same workspace. IMHO this is good enough reason to put this change.

@laeubi
Copy link
Member

laeubi commented May 14, 2021

@akurtakov yeah then it is required here also even though its strange that platform do it that way as there is no option to mark a bundle as "test-only" the code will behave different if imported in a workspace or consumed from a target platform.

@akurtakov
Copy link
Contributor Author

So should this one be pushed? I don't see how it will behave different as all normal and test dependencies are available to test source folders.

@laeubi
Copy link
Member

laeubi commented May 14, 2021

This can be pushed, my comment was related to the org.eclipse.ui.tests.harness ...

@akurtakov akurtakov merged commit 6cf8f62 into eclipse-m2e:master May 14, 2021
@laeubi
Copy link
Member

laeubi commented May 14, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants