Skip to content

Add unit tests for DependencyLoopFinder cycle detection - #2405

Open
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:dependency-loop-finder-tests
Open

Add unit tests for DependencyLoopFinder cycle detection#2405
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:dependency-loop-finder-tests

Conversation

@vogella

@vogella vogella commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The dependency-cycle finder behind the MANIFEST.MF editor's "Look for cycles in the dependency graph" action had no test coverage. These tests cover what it handles today: no cycle, a direct mutual dependency, a three-bundle cycle, two separate cycles through the root, independence from the order in which the root declares its dependencies, and a cycle beside the root that must not hide the cycle through it.

The graph for each test is built from dummy target bundles that are resolved through PluginRegistry, so the tests exercise the real production code path rather than a stand-in. All of them pass against the current implementation.

Cover the cases the dependency-cycle finder behind the MANIFEST.MF
editor's "Look for cycles in the dependency graph" action handles today:
no cycle, a direct mutual dependency, a three-bundle cycle, two separate
cycles through the root, independence from the order in which the root
declares its dependencies, and a cycle beside the root that must not hide
the cycle through it.

The tests build dummy target bundles and resolve them through
PluginRegistry, exercising the production code path. Registered in
AllPDECoreTests.
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

Test Results

  129 files  ± 0    129 suites  ±0   38m 35s ⏱️ -10s
3 528 tests + 6  3 474 ✅ + 6   54 💤 ±0  0 ❌ ±0 
9 387 runs  +18  9 257 ✅ +18  130 💤 ±0  0 ❌ ±0 

Results for commit 254ea16. ± Comparison against base commit 4818268.

♻️ This comment has been updated with latest results.

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.

1 participant