2020-08-30 14:09:34 +08:00
|
|
|
load("//bazel:python.bzl", "py_test_run_all_subdirectory")
|
|
|
|
|
2020-08-25 04:24:23 +08:00
|
|
|
# This is a dummy test dependency that causes the above tests to be
|
|
|
|
# re-run if any of these files changes.
|
|
|
|
py_library(
|
|
|
|
name = "dashboard_lib",
|
2020-08-30 14:09:34 +08:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.py"],
|
|
|
|
exclude = ["tests/*"],
|
|
|
|
),
|
2020-08-25 04:24:23 +08:00
|
|
|
)
|
|
|
|
|
2020-08-30 14:09:34 +08:00
|
|
|
py_test_run_all_subdirectory(
|
2020-08-25 04:24:23 +08:00
|
|
|
size = "small",
|
2020-08-30 14:09:34 +08:00
|
|
|
include = ["**/test*.py"],
|
2021-06-08 10:50:46 +08:00
|
|
|
exclude = ["modules/test/**", "modules/node/tests/test_node.py", "tests/test_dashboard.py"],
|
2020-08-30 14:09:34 +08:00
|
|
|
extra_srcs = [],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2020-08-25 04:24:23 +08:00
|
|
|
)
|
2020-12-14 15:03:33 -08:00
|
|
|
|
|
|
|
py_test(
|
2021-06-08 10:50:46 +08:00
|
|
|
name = "test_node",
|
2020-12-14 15:03:33 -08:00
|
|
|
size = "medium",
|
2021-06-08 10:50:46 +08:00
|
|
|
srcs = ["modules/node/tests/test_node.py"],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2020-12-14 15:03:33 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "test_dashboard",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["tests/test_dashboard.py"],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2021-01-15 09:43:34 -08:00
|
|
|
)
|