-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Modernize EnvironmentManager, standardize assembly teardown
#15551
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||
|
@nvborisenko What do you think? This modernization should have no behavior changes, and it will allow us to iterate on our testing without adding a million lines which change nothing. |
User description
Description
Modernizes some test code and standardizes assembly teardown, in preparation for testing infrastructure improvements.
Motivation and Context
Contributes to #15536
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Introduced centralized
AssemblyTeardownfor test setup and teardown.AssemblyTeardownclasses for Chrome, Edge, Firefox, IE, Safari, and Remote tests.Refactored
EnvironmentManagerfor improved readability and immutability.EnvironmentManager.Modernized test utilities and attributes for better maintainability.
NeedsFreshDriverAttributeandTestUtilities.Reactivated and updated previously commented-out Firefox tests.
FirefoxProfileManagerTestandFirefoxProfileTests.Changes walkthrough 📝
12 files
Added centralized test setup and teardown for Chrome testsRemoved redundant teardown logic from Chrome testsSimplified property definitions and type checksRefactored driver management logic and removed unused methodsRefactored `EnvironmentManager` for immutability and readabilitySimplified property definitions in `StubDriver`Improved type casting and property handling in utilitiesAdded centralized test setup and teardown for Edge testsAdded centralized test setup and teardown for Firefox testsAdded centralized test setup and teardown for IE testsAdded centralized test setup and teardown for Remote testsAdded centralized test setup and teardown for Safari tests2 files
Reactivated and updated Firefox profile manager testsReactivated and updated Firefox profile tests