forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
33 lines (31 loc) · 869 Bytes
/
Copy pathBUILD
File metadata and controls
33 lines (31 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
load("@aspect_rules_py//py:defs.bzl", "py_pytest_main", "py_test")
load("@cmk_requirements//:requirements.bzl", "requirement")
py_pytest_main(
name = "__test__",
deps = [
requirement("pytest"),
# pytest-xdist for `--numprocesses=NPROC`
requirement("pytest-xdist"),
],
)
py_test(
name = "community",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
"--import-mode=importlib",
"--random-order-bucket=global",
"--dist=loadfile",
"--numprocesses=4",
],
data = ["@//:pyproject.toml"],
main = ":__test__.py",
visibility = ["//visibility:private"],
deps = [
":__test__",
"//cmk/editions:community",
requirement("pytest-random-order"),
],
)