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 JobTest#testSetProgressGroup #1026 #1040

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

HeikoKlare
Copy link
Contributor

The test method JobTest#testSetProgressGroup mixes up at least five test cases into one method. This makes it hard to comprehend what actually is tested and to identify the reasons for a failure. This change splits up the five test cases into separate methods with names reflecting their purpose and a reduced setup to what is necessary for the test case. Since the original test method is randomly failing, this change will make it easier to find the reasons.

Contributes to #1026

Copy link
Contributor

github-actions bot commented Dec 18, 2023

Test Results

     594 files  ±  0       594 suites  ±0   37m 40s ⏱️ - 5m 52s
  3 862 tests +  4    3 841 ✔️ +  4    21 💤 ±0  0 ±0 
12 192 runs  +12  12 034 ✔️ +12  158 💤 ±0  0 ±0 

Results for commit 128ca1f. ± Comparison against base commit 6ed9800.

This pull request removes 1 and adds 5 tests. Note that renamed tests count towards both.
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup_cancellationPropagatedToMonitor
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup_ignoreWhileRunning
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup_ignoreWhileWaiting
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup_withNullGroup
org.eclipse.core.tests.runtime.jobs.JobTest ‑ testSetProgressGroup_withProperGroup

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the issue-1026 branch 2 times, most recently from a2dff31 to 829beac Compare December 19, 2023 07:08
The test method JobTest#testSetProgressGroup mixes up at least five test
cases into one method. This makes it hard to comprehend what actually is
tested and to identify the reasons for a failure. This change splits up
the five test cases into separate methods with names reflecting their
purpose and a reduced setup to what is necessary for the test case.
Since the original test method is randomly failing, this change will
make it easier to find the reasons.

Contributes to
eclipse-platform#1026
@HeikoKlare HeikoKlare merged commit b23a33c into eclipse-platform:master Dec 20, 2023
16 checks passed
@HeikoKlare HeikoKlare deleted the issue-1026 branch December 20, 2023 12:48
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