Skip to content

Commit

Permalink
[dotnet] Break out the individual dotnet "small" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 3, 2023
1 parent b9d83bf commit 390fd2d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .skipped-tests
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-//dotnet/test/common:TakesScreenshotTest-firefox
-//dotnet/test/common:VirtualAuthn/VirtualAuthenticatorTest-chrome
-//dotnet/test/support/UI:SelectBrowserTests-firefox
-//dotnet/test/support/UI:SmallTests
-//dotnet/test/support/UI:SelectTests
-//java/test/org/openqa/selenium:FormHandlingTest-chrome
-//java/test/org/openqa/selenium/bidi:BiDiSessionTest-remote
-//java/test/org/openqa/selenium/bidi:BiDiTest-remote
Expand Down
2 changes: 2 additions & 0 deletions dotnet/private/dotnet_nunit_test_suite.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def dotnet_nunit_test_suite(
target_frameworks = target_frameworks,
data = data,
tags = tags,
size = size,
**kwargs
)
tests.append(test_name)
Expand All @@ -160,6 +161,7 @@ def dotnet_nunit_test_suite(
args = _BROWSERS[browser]["args"] + _HEADLESS_ARGS,
data = data + _BROWSERS[browser]["data"],
tags = tags + [browser] + COMMON_TAGS + _BROWSERS[browser]["tags"],
size = size,
**kwargs
)
tests.append(browser_test_name)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/support/Events/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework", "nunit_test")
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework")

SMALL_TESTS = [
"EventFiringWebDriverTest.cs",
]

nunit_test(
dotnet_nunit_test_suite(
name = "SmallTests",
size = "small",
srcs = SMALL_TESTS,
Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/support/Extensions/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//dotnet:defs.bzl", "framework", "nunit_test")
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework")

nunit_test(
dotnet_nunit_test_suite(
name = "SmallTests",
size = "small",
srcs = glob(["*.cs"]),
Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/support/UI/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework", "nunit_test")
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework")

SMALL_TESTS = [
"DefaultWaitTest.cs",
Expand All @@ -9,7 +9,7 @@ SMALL_TESTS = [
"WebDriverWaitTest.cs",
]

nunit_test(
dotnet_nunit_test_suite(
name = "SmallTests",
size = "small",
srcs = SMALL_TESTS,
Expand Down

0 comments on commit 390fd2d

Please sign in to comment.