[dotnet] [test] Normalize namespace for Support tests#17277
[dotnet] [test] Normalize namespace for Support tests#17277nvborisenko merged 1 commit intoSeleniumHQ:trunkfrom
Conversation
Review Summary by QodoNormalize .NET Support test namespaces and consolidate global usings
WalkthroughsDescription• Normalize test namespaces under OpenQA.Selenium.Support.Tests hierarchy • Consolidate global using directives in centralized GlobalUsings.cs file • Update project RootNamespace to match new namespace structure • Remove redundant using statements from individual test files File Changes1. dotnet/test/support/AssemblyFixture.cs
|
Code Review by Qodo
1. RootNamespace not OpenQA.Selenium.Tests
|
|
Thank you, @nvborisenko for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
🔗 Related Issues
Contributes to #15536
💥 What does this PR do?
This pull request restructures the namespaces and global usings in the .NET test suite for Selenium WebDriver Support, improving code organization and maintainability. The changes primarily move test classes into new, more consistent namespaces and introduce a central file for global usings to reduce redundancy.
Namespace and Usings Refactor:
All test files under
dotnet/test/support/have been moved to new namespaces underOpenQA.Selenium.Support.Testsand its sub-namespaces (e.g.,.Events,.Extensions,.UI) for better organization and clarity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]The test project file (
Selenium.WebDriver.Support.Tests.csproj) now sets theRootNamespacetoOpenQA.Selenium.Support.Teststo match the new namespace structure.Global Usings Consolidation:
Properties/GlobalUsings.cs, which defines global using directives for commonly used namespaces (such asNUnit.Framework,OpenQA.Selenium.Tests.Infrastructure, and standard .NET namespaces). This reduces repetitive using statements across test files.🔄 Types of changes