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

Remove type hierarchy of Win32AutoscaleTestBase #1728

Merged

Conversation

HeikoKlare
Copy link
Contributor

Auto-scale related, Windows-specific tests are currently organized in a class hierarchy based on Win32AutoscaleTestBase. This leads to unnecessarily initialized objects (e.g., shells or displays without any need for a test) and the strict necessity to use activated monitor-specific scaling in actual tests or to revert the setup logic affecting that value by hand.

This change removes the Win32AutoscaleTestBase and moves the common test functionality into extensions (PlatformSpecificExecution, ResetMonitorSpecificScaling and WithMonitorSpecificScaling) as well as the utility class DPITestUtil.

This serves as a preparation for #1720.

Copy link
Contributor

github-actions bot commented Jan 15, 2025

Test Results

   494 files  ±0     494 suites  ±0   9m 0s ⏱️ -56s
 4 324 tests ±0   4 306 ✅ ±0   18 💤 ±0  0 ❌ ±0 
16 534 runs  ±0  16 386 ✅ ±0  148 💤 ±0  0 ❌ ±0 

Results for commit 0cabb29. ± Comparison against base commit f574463.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the remove-autoscale-test-hierarchy branch from 71ba8d1 to cf53c6c Compare January 15, 2025 12:08
@HeikoKlare HeikoKlare marked this pull request as ready for review January 15, 2025 12:08
Auto-scale related, Windows-specific tests are currently organized in a
class hierarchy based on Win32AutoscaleTestBase. This leads to
unnecessarily initialized objects (e.g., shells or displays without any
need for a test) and the strict necessity to use activated
monitor-specific scaling in actual tests or to revert the setup logic
affecting that value by hand.

This change removes the Win32AutoscaleTestBase and moves the common test
functionality into extensions (PlatformSpecificExecution,
ResetMonitorSpecificScaling and WithMonitorSpecificScaling) as well as
the utility class DPITestUtil.
@HeikoKlare HeikoKlare force-pushed the remove-autoscale-test-hierarchy branch from cf53c6c to 0cabb29 Compare January 15, 2025 18:21
@HeikoKlare HeikoKlare merged commit e0b4fe9 into eclipse-platform:master Jan 15, 2025
14 checks passed
@HeikoKlare HeikoKlare deleted the remove-autoscale-test-hierarchy branch January 15, 2025 18:33
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