Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/dotnet/test/support/UI/BUILD.bazel
2868 views
load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework")

SMALL_TESTS = [
    "DefaultWaitTest.cs",
    "HandCrankClock.cs",
    "LoadableComponentTests.cs",
    "SelectTests.cs",
    "SlowLoadableComponentTest.cs",
    "WebDriverWaitTest.cs",
]

dotnet_nunit_test_suite(
    name = "SmallTests",
    size = "small",
    srcs = SMALL_TESTS,
    target_frameworks = ["net8.0"],
    deps = [
        "//dotnet/src/support",
        "//dotnet/src/webdriver:webdriver-net8.0",
        "//dotnet/test/common:fixtures",
        framework("nuget", "NUnit"),
        framework("nuget", "Moq"),
    ],
)

dotnet_nunit_test_suite(
    name = "LargeTests",
    size = "large",
    srcs = glob(
        [
            "**/*Test.cs",
            "**/*Tests.cs",
        ],
        exclude = SMALL_TESTS,
    ) + [
        "//dotnet/test/common:assembly-fixtures",
    ],
    browsers = [
        "firefox",
    ],
    data = [
        "//dotnet/test/common:test-data",
    ],
    target_frameworks = ["net8.0"],
    deps = [
        "//dotnet/src/support",
        "//dotnet/src/webdriver:webdriver-net8.0",
        "//dotnet/test/common:fixtures",
        framework("nuget", "NUnit"),
    ],
)