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

Rewrite smartimport test as plain JUnit test #741

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

akurtakov
Copy link
Member

This removes RedDeer dependency which has been announced to drop from simrel.

This removes RedDeer dependency which has been announced to drop from
simrel.
@github-actions
Copy link

Test Results

   240 files   -        6     240 suites   - 6   37m 2s ⏱️ - 30m 42s
3 300 tests +       1  3 275 ✔️ ±       0  24 💤 ±  0  1 +1 
7 473 runs   - 2 721  7 424 ✔️  - 2 698  48 💤  - 24  1 +1 

For more details on these failures, see this check.

Results for commit ee3c379. ± Comparison against base commit b033971.

This pull request removes 4 and adds 5 tests. Note that renamed tests count towards both.
org.eclipse.ui.tests.smartimport.EclipseJavaProjectTest ‑ testImport no-configuration
org.eclipse.ui.tests.smartimport.FeatureProjectTest ‑ testImport no-configuration
org.eclipse.ui.tests.smartimport.PlainEclipseProjectTest ‑ testImport no-configuration
org.eclipse.ui.tests.smartimport.PlainJavaProjectTest ‑ testImport no-configuration
AllPDEMinimalTests org.eclipse.pde.ui.tests.launcher.AllLauncherTests org.eclipse.pde.ui.tests.launcher.FeatureBasedLaunchTest ‑ Unknown test
org.eclipse.ui.tests.smartimport.EclipseJavaProjectTest ‑ testImport
org.eclipse.ui.tests.smartimport.FeatureProjectTest ‑ testImport
org.eclipse.ui.tests.smartimport.PlainEclipseProjectTest ‑ testImport
org.eclipse.ui.tests.smartimport.PlainJavaProjectTest ‑ testImport

@akurtakov
Copy link
Member Author

Merging. It's surprising how much simpler a test can become :)

@akurtakov akurtakov merged commit b01e2c4 into eclipse-pde:master Sep 15, 2023
12 of 14 checks passed
@merks
Copy link
Contributor

merks commented Sep 15, 2023

Merging. It's surprising how much simpler a test can become :)

You’re awesome 😎

@HannesWell
Copy link
Member

This is indeed really great. Thanks for this!
And it also shows that splitting the core implementation from the UI can drastically simplify testing.
I created a little follow up with #743 with a few more clean-ups.

@laeubi
Copy link
Contributor

laeubi commented Sep 18, 2023

This removes RedDeer dependency which has been announced to drop from simrel.

Just wondering even if they dropped we should be able to use it anyways from an older release? Or does Platform is only allowed to use what is on simrel?

@akurtakov
Copy link
Member Author

akurtakov commented Sep 18, 2023

@laeubi In theory using from old release is possible and Platform is not limited to use only what's in simrel.
In practice as soon as some user facing label/title/etc. changes Red Deer functionality breaks as it can no longer match widgets and one has to change Red Deer itself to make the fix (I've went through that multiple times in https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/ which is heavy Red Deer user).
For that reason I decided to rewrite the single plugin using it to be plain JUnit and simplify Platform infrastructure which is already far more complicated than wanted.

@akurtakov akurtakov self-assigned this Sep 18, 2023
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.

4 participants