Skip to content

Commit 26ae1b3

Browse files
Override the default test options for some integrations
1 parent c758504 commit 26ae1b3

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

.github/workflows/pr-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- datadog_checks_base/datadog_checks/**
99
- datadog_checks_dev/datadog_checks/dev/*.py
10+
- ddev/src/**
1011
- "!datadog_checks_base/datadog_checks/base/data/agent_requirements.in"
1112

1213
concurrency:

datadog_checks_dev/hatch.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ matrix.python.features = [
2323
]
2424
matrix.python.scripts = [
2525
{ key = "test", value = "_dd-test --ignore tests/tooling", if = ["2.7"] },
26+
{ key = "test-cov", value = "_dd-test-cov --ignore tests/tooling", if = ["2.7"] },
2627
]
2728
# TODO: remove this when the old CLI is gone
2829
matrix.python.pre-install-commands = [

datadog_checks_dev/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,6 @@ include = [
118118
dev-mode-dirs = [
119119
".",
120120
]
121+
122+
[tool.pytest.ini_options]
123+
testpaths = "tests"

datadog_checks_downloader/hatch.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
[[envs.default.matrix]]
44
python = ["3.9"]
55

6-
[envs.default.overrides]
7-
matrix.python.scripts = [
8-
{ key = "test", value = "_dd-test --capture=no --log-cli-level=debug" },
9-
]
10-
116
[envs.default]
127
e2e-env = false
138
dependencies = [

datadog_checks_downloader/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ include = [
6161
dev-mode-dirs = [
6262
".",
6363
]
64+
65+
[tool.pytest.ini_options]
66+
capture = "no"
67+
log_cli_level = "debug"

teamcity/hatch.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ impl = ["legacy", "openmetrics"]
1212
matrix.impl.env-vars = [
1313
{ key = "USE_OPENMETRICS", value = "true", if = ["openmetrics"] },
1414
]
15-
matrix.python.scripts = [
16-
{ key = "test", value = "_dd-test --ignore=tests/docker" },
17-
]
1815

1916
[envs.default.env-vars]
2017
DDEV_SKIP_GENERIC_TAGS_CHECK = "true"

teamcity/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ include = [
6060
dev-mode-dirs = [
6161
".",
6262
]
63+
64+
[tool.pytest.ini_options]
65+
norecursedirs = ["tests/docker"]

win32_event_log/hatch.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ platforms = [
1212
[envs.default.overrides]
1313
matrix.python.scripts = [
1414
{ key = "test", value = "pytest -v --benchmark-skip tests/legacy", if = ["2.7"] },
15+
{ key = "test-cov", value = "pytest -v --benchmark-skip tests/legacy", if = ["2.7"] },
1516
]

0 commit comments

Comments
 (0)