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

Migrate BasicAliasTest and SyncAliasTest to JUnit 5 #903 #1467

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

HeikoKlare
Copy link
Contributor

This change migrates the alias tests (BasicAliasTest and SyncAliasTest) to JUnit 5. It replaces the usage of the WorkspaceTestRule with the WorkspaceResetExtension as. The deletion of files and file stores via the WorkspaceTestRule is replaced with dedicated file delete operations exactly where they are required. The creation of temporary file stores is replaced with the usage of temporary directories that are automatically cleaned up via the according JUnit 5 extension. The recursive folder deletion implementation from the SessionCustomizationUtil is used by generalizing it to the FileSystemHelper class.

Contributes to #903

Copy link
Contributor

github-actions bot commented Jul 9, 2024

Test Results

 1 734 files  +  149   1 734 suites  +149   1h 27m 41s ⏱️ + 5m 28s
 3 972 tests ±    0   3 950 ✅ ±    0   22 💤 ±0  0 ❌ ±0 
12 513 runs  +1 035  12 352 ✅ +1 035  161 💤 ±0  0 ❌ ±0 

Results for commit 47e92a8. ± Comparison against base commit 3c40369.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug256837
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug258987
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug32785
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug256837(Path)
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug258987(Path)
AutomatedResourceTests AllAliasTests BasicAliasTest ‑ testBug32785(Path)

♻️ This comment has been updated with latest results.



This change migrates the alias tests (BasicAliasTest and SyncAliasTest)
to JUnit 5. It replaces the usage of the WorkspaceTestRule with the
WorkspaceResetExtension as. The deletion of files and file stores via
the WorkspaceTestRule is replaced with dedicated file delete operations
exactly where they are required. The creation of temporary file stores
is replaced with the usage of temporary directories that are
automatically cleaned up via the according JUnit 5 extension. The
recursive folder deletion implementation from the
SessionCustomizationUtil is used by generalizing it to the
FileSystemHelper class.

Contributes to
eclipse-platform#903
@HeikoKlare HeikoKlare marked this pull request as ready for review July 9, 2024 21:01
@HeikoKlare HeikoKlare merged commit e0be5f5 into eclipse-platform:master Jul 12, 2024
16 checks passed
@HeikoKlare HeikoKlare deleted the junit5-aliastests branch July 12, 2024 07:28
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