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

Merge AllPDEMinimalTests into AllPDETests and merge minimal tests #745

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

HannesWell
Copy link
Member

This prevents (and resolves already existing) discrepancies between the tests run in the verification-builds and I-builds. All tests executed in verification builds should also run in I-builds.
Only those that cannot succeed in verification builds are dynamically disable using JUnit-Assume.

With that just the AllPDETests test-suite can be executed.

The discrepancies were about to get more in #497 or #743 because people just check the verification builds, if their test was really executed.

@vik-chand you split up those tests a while ago and I saw that you also tried to use Assumptions (at least they were in the tests as comments). Can you tell why you didn't continue with that approach?

@HannesWell HannesWell mentioned this pull request Sep 17, 2023
@github-actions
Copy link

github-actions bot commented Sep 17, 2023

Test Results

     270 files  +  24       270 suites  +24   1h 1m 35s ⏱️ + 5m 48s
  3 334 tests +  35    3 302 ✔️ +30  30 💤 +  6  1 ±0  1 🔥  - 1 
10 299 runs  +105  10 207 ✔️ +88  90 💤 +18  1 ±0  1 🔥  - 1 

For more details on these failures and errors, see this check.

Results for commit af10a51. ± Comparison against base commit ba4fde8.

This pull request removes 575 and adds 610 tests. Note that renamed tests count towards both.
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_importPackage
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeFragments
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeFragmentsProvidingPackages
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeNonTestFragments
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeOptional
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireBundle
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireBundle2
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireDifferentVersions
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requiredCapability
AllPDEMinimalTests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.PDEXmlProcessorFactoryTest testParseXmlWithExternalEntity ‑ Unknown test
…
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_importPackage
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeFragments
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeFragmentsProvidingPackages
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeNonTestFragments
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_includeOptional
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireBundle
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireBundle2
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requireDifferentVersions
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.DependencyManagerTest ‑ testFindRequirementsClosure_requiredCapability
AllPDETests org.eclipse.pde.core.tests.internal.AllPDECoreTests org.eclipse.pde.core.tests.internal.PDEXmlProcessorFactoryTest testParseXmlWithExternalEntity ‑ Unknown test
…

♻️ This comment has been updated with latest results.

@HannesWell HannesWell force-pushed the mergeMinimalTests branch 7 times, most recently from 32f49b5 to faa7acd Compare September 17, 2023 21:12
This prevents future and resolves already existing discrepancies between
the tests run in the verification-builds and I-builds. All tests
executed in verification builds should also run in I-builds.
Only those that cannot succeed in verification builds are dynamically
disable using JUnit-Assume.

With this the 'AllPDETests' test-suite can be now be executed in
verification builds.

This also fixes the ConvertProjectToPluginTestCase for verification
builds and runs the full PluginRegistryTests and
ClasspathContributorTest which passes without changes.
and make it work in verification tests and fix source-attachment
assertion.

Add Plug-ins to import from the runtime as dependencies of the
Test-Plugin in order to ensure they are available in the test-runtime.
@HannesWell
Copy link
Member Author

This pull request removes 575 and adds 610 tests. Note that renamed tests count towards both.

I double checked it and effectively this change only adds new tests that are executed and removes none (some are effectively re-named).

@HannesWell
Copy link
Member Author

Ideally all those tests that are now disabled dynamically are fixed to work in verification builds (and executed as JUnit Plugin Test from the Workspace). But that's a task for the future.
This is already an improvement, thus I'm submitting this now.

@HannesWell HannesWell merged commit 912012e into eclipse-pde:master Sep 18, 2023
12 of 14 checks passed
@HannesWell HannesWell deleted the mergeMinimalTests branch September 18, 2023 07:27
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