forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
41 lines (38 loc) · 1.11 KB
/
Copy pathBUILD
File metadata and controls
41 lines (38 loc) · 1.11 KB
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
34
35
36
37
38
39
40
41
load("@aspect_rules_py//py:defs.bzl", "py_pytest_main", "py_test")
load("@cmk_requirements//:requirements.bzl", "requirement")
package(default_visibility = [":__subpackages__"])
py_pytest_main(
name = "__test__",
deps = [
requirement("pytest"),
# pytest-xdist for `--numprocesses=NPROC`
requirement("pytest-xdist"),
],
)
py_test(
name = "legacy_checks",
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"],
env = {"EDITION": "community"},
main = ":__test__.py",
visibility = ["//visibility:private"],
deps = [
":__test__",
"//cmk/legacy_checks",
"//cmk/legacy_includes",
"//tests/unit:conftest",
requirement("marshmallow"),
requirement("pytest-asyncio"),
requirement("pytest-random-order"),
requirement("time-machine"),
],
)