Skip to content

chore: Make com.microsoft.copilot.eclipse.ui.test a fragment bundle of com.microsoft.copilot.eclipse.ui bundle#361

Open
travkin79 wants to merge 1 commit into
microsoft:mainfrom
travkin79:fix-fragment-test-bundle
Open

chore: Make com.microsoft.copilot.eclipse.ui.test a fragment bundle of com.microsoft.copilot.eclipse.ui bundle#361
travkin79 wants to merge 1 commit into
microsoft:mainfrom
travkin79:fix-fragment-test-bundle

Conversation

@travkin79

Copy link
Copy Markdown
Contributor

This way, tests in com.microsoft.copilot.eclipse.ui.test can access package-private methods in com.microsoft.copilot.eclipse.ui bundle and we don't need to make them public.

In addition, we no longer need to maintain redundant plug-in dependencies in the test bundle.

This is similar to the com.microsoft.copilot.eclipse.core.test bundle being a fragment bundle with com.microsoft.copilot.eclipse.core as the host bundle.

This way, tests in com.microsoft.copilot.eclipse.ui.test can access package-private methods and we don't need to make them public.
In addition, we no longer need to maintain redundant plug-in dependencies in the test bundle.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the com.microsoft.copilot.eclipse.ui.test bundle to be an OSGi fragment of the com.microsoft.copilot.eclipse.ui host bundle, enabling UI tests to access package-private implementation without widening production API visibility and reducing redundant test-bundle dependencies.

Changes:

  • Converted com.microsoft.copilot.eclipse.ui.test into a fragment bundle via Fragment-Host and simplified its bundle dependencies.
  • Introduced fragment.xml to contribute test-specific Eclipse extensions (marker + editor registration).
  • Updated build packaging to include fragment.xml instead of plugin.xml.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
com.microsoft.copilot.eclipse.ui.test/META-INF/MANIFEST.MF Declares the test bundle as a fragment of com.microsoft.copilot.eclipse.ui and trims redundant dependencies.
com.microsoft.copilot.eclipse.ui.test/fragment.xml Adds fragment-level extension contributions needed by integration tests (marker + editor).
com.microsoft.copilot.eclipse.ui.test/build.properties Packages fragment.xml in the built test fragment.

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.

2 participants