-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] get tests working on windows with bazel #16853
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 Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||
User description
Breaking this out from #16818
💥 What does this PR do?
🔧 Implementation Notes
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Fix .NET tests on Windows with Bazel by handling runfiles directories
Prevent NUnit test parallelism to avoid driver instance conflicts
Add synchronization to WebElementTest.ShouldSubmitElement test
Guard Firefox signed directory addon test on Windows platform
Diagram Walkthrough
File Walkthrough
WebExtensionTest.cs
Handle Bazel runfiles directory resolution on Windowsdotnet/test/common/BiDi/WebExtension/WebExtensionTest.cs
LocateRelativePathto handle Bazel runfiles directoryresolution on Windows
directory when direct path resolution fails
block
WebElementTest.cs
Add synchronization to element submit testdotnet/test/common/WebElementTest.cs
ShouldSubmitElementtest usingWaitForhelperFirefoxDriverTest.cs
Guard Firefox addon test and fix path resolutiondotnet/test/firefox/FirefoxDriverTest.cs
IgnorePlatformattribute toShouldInstallAndUninstallSignedDirAddontestdirectory addons
GetPathmethod to use Bazel Runfiles for directoryresolution
dotnet_nunit_test_suite.bzl
Disable NUnit test parallelism for Bazeldotnet/private/dotnet_nunit_test_suite.bzl
_NUNIT_ARGSconstant with--workers=1flaginstance
_NUNIT_ARGSto all browser test configurationsBUILD.bazel
Add Runfiles NuGet dependencydotnet/test/firefox/BUILD.bazel
RunfilesNuGet package dependency to Firefox test suite