diff --git a/.skipped-tests b/.skipped-tests index 16f00c9b99235..82b2d1c796077 100644 --- a/.skipped-tests +++ b/.skipped-tests @@ -19,6 +19,7 @@ -//javascript/atoms:test-chrome -//javascript/atoms:test-edge -//javascript/atoms:test-firefox-beta +-//javascript/chrome-driver/... -//javascript/node/selenium-webdriver:test-bidi-network-test.js-chrome -//javascript/node/selenium-webdriver:test-builder-test.js-chrome -//javascript/node/selenium-webdriver:test-builder-test.js-firefox @@ -54,3 +55,4 @@ -//rb/spec/integration/selenium/webdriver:element-chrome -//rb/spec/integration/selenium/webdriver:element-chrome-bidi -//rb/spec/integration/selenium/webdriver:element-chrome-remote +-//rust/tests/... diff --git a/rust/BUILD.bazel b/rust/BUILD.bazel index 12b51c6e582a2..e8efae2dc457e 100644 --- a/rust/BUILD.bazel +++ b/rust/BUILD.bazel @@ -1,5 +1,5 @@ load("@crates//:defs.bzl", "all_crate_deps") -load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test", "rust_test_suite", "rustfmt_config") +load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test", "rustfmt_config") rustfmt_config( name = "enable-rustfmt", @@ -92,6 +92,7 @@ rust_library( exclude = ["main.rs"], ), edition = "2021", + visibility = ["//rust:__subpackages__"], deps = all_crate_deps(normal = True), ) @@ -117,22 +118,3 @@ rust_test( edition = "2021", tags = ["no-sandbox"], ) - -rust_test_suite( - name = "integration", - size = "small", - srcs = glob(["tests/**/*_tests.rs"]), - data = [ - "tests/common.rs", - ":selenium-manager", - ], - edition = "2021", - tags = [ - "no-sandbox", - "requires-network", - ], - deps = [":selenium_manager"] + all_crate_deps( - normal = True, - normal_dev = True, - ), -) diff --git a/rust/tests/BUILD.bazel b/rust/tests/BUILD.bazel new file mode 100644 index 0000000000000..a037d96041f43 --- /dev/null +++ b/rust/tests/BUILD.bazel @@ -0,0 +1,26 @@ +load("@crates//:defs.bzl", "all_crate_deps") +load("//rust:defs.bzl", "rust_test_suite", "rustfmt_config") + +rustfmt_config( + name = "enable-rustfmt", +) + +rust_test_suite( + name = "integration", + size = "small", + srcs = glob(["**/*_tests.rs"]), + data = [ + "common.rs", + "//rust:selenium-manager", + ], + edition = "2021", + tags = [ + "no-sandbox", + "requires-network", + ], + deps = ["//rust:selenium_manager"] + all_crate_deps( + package_name = "rust", + normal = True, + normal_dev = True, + ), +) diff --git a/scripts/github-actions/ci-build.sh b/scripts/github-actions/ci-build.sh index c8eb0f86c2b22..e64cbcf62cde8 100755 --- a/scripts/github-actions/ci-build.sh +++ b/scripts/github-actions/ci-build.sh @@ -10,13 +10,7 @@ set -x bazel test --config=remote-ci --build_tests_only \ --test_tag_filters=-exclusive-if-local,-skip-remote \ --keep_going --flaky_test_attempts=2 \ - //dotnet/... \ - //java/... \ - //javascript/atoms/... \ - //javascript/node/selenium-webdriver/... \ - //javascript/webdriver/... \ - //py/... \ - //rb/spec/... -- $(cat .skipped-tests | tr '\n' ' ') + //... -- $(cat .skipped-tests | tr '\n' ' ') # Build the packages we want to ship to users bazel build --config=remote-ci \