-
Notifications
You must be signed in to change notification settings - Fork 53
/
tox.toml
53 lines (47 loc) · 1.28 KB
/
tox.toml
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
42
43
44
45
46
47
48
49
50
51
52
53
skipsdist = true
env_list = [
"validate-resources",
"validate-resources-script",
"class-generator",
"resource-tests",
"api-group-order",
"validate-unittests",
]
[env.resource-tests]
description = "Run resource tests on local cluster (k3d)"
passenv = ["KUBECONFIG"]
deps = ["uv"]
commands = [["uv", "run", "pytest", "tests/test_resources.py"]]
[env.validate-resources]
description = "Run validation resources tests"
deps = ["uv"]
commands = [["uv", "run", "pytest", "tests/test_validate_resources.py"]]
[env.validate-resources-script]
description = "Run validation resources script tests (test the script itself, not the resources)"
deps = ["uv"]
commands = [["uv", "run", "pytest", "tests/test_validate_resources_script.py"]]
[env.class-generator]
description = "Run class generator tests"
deps = ["uv"]
commands = [
[
"uv",
"run",
"pytest",
"class_generator/tests/test_camelcase_to_snake.py",
],
[
"uv",
"run",
"pytest",
"class_generator/tests/test_class_generator.py",
],
]
[env.api-group-order]
description = "Run API group order tests"
deps = ["uv"]
commands = [["uv", "run", "pytest", "tests/test_api_group_order.py"]]
[env.unittests]
description = "Run unittests"
deps = ["uv"]
commands = [["uv", "run", "pytest", "tests/test_unittests.py", "-svv"]]