Skip to content

Commit

Permalink
Override the default test options for some integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed Sep 7, 2023
1 parent c758504 commit 0739bc5
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- datadog_checks_base/datadog_checks/**
- datadog_checks_dev/datadog_checks/dev/*.py
- ddev/src/**
- "!datadog_checks_base/datadog_checks/base/data/agent_requirements.in"

concurrency:
Expand Down
1 change: 1 addition & 0 deletions datadog_checks_dev/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ matrix.python.features = [
]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --ignore tests/tooling", if = ["2.7"] },
{ key = "test-cov", value = "_dd-test-cov --ignore tests/tooling", if = ["2.7"] },
]
# TODO: remove this when the old CLI is gone
matrix.python.pre-install-commands = [
Expand Down
5 changes: 0 additions & 5 deletions datadog_checks_downloader/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
[[envs.default.matrix]]
python = ["3.9"]

[envs.default.overrides]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --capture=no --log-cli-level=debug" },
]

[envs.default]
e2e-env = false
dependencies = [
Expand Down
3 changes: 3 additions & 0 deletions datadog_checks_downloader/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ include = [
dev-mode-dirs = [
".",
]

[tool.pytest.ini_options]
addopts = "--capture=no --log-cli-level=debug"
1 change: 1 addition & 0 deletions teamcity/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ matrix.impl.env-vars = [
]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --ignore=tests/docker" },
{ key = "test-cov", value = "_dd-test-cov --ignore=tests/docker" },
]

[envs.default.env-vars]
Expand Down
3 changes: 3 additions & 0 deletions teamcity/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ include = [
dev-mode-dirs = [
".",
]

[tool.pytest.ini_options]
addopts = "--ignore=tests/docker"
1 change: 1 addition & 0 deletions win32_event_log/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ platforms = [
[envs.default.overrides]
matrix.python.scripts = [
{ key = "test", value = "pytest -v --benchmark-skip tests/legacy", if = ["2.7"] },
{ key = "test-cov", value = "pytest -v --benchmark-skip tests/legacy", if = ["2.7"] },
]

0 comments on commit 0739bc5

Please sign in to comment.