Skip to content

Commit b667f35

Browse files
author
Jan Tychtl
committed
feat: json reports for tests
1 parent e9f31a9 commit b667f35

File tree

17 files changed

+59
-7
lines changed

17 files changed

+59
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ packages/gooddata-sdk/tests/catalog/translate
1212
.vscode
1313
.ruff_cache
1414

15+
# Pytest JSON reports
16+
**/.json-report-*.json
17+
1518
# Python build artifacts
1619
.tox
1720
*.egg-info

packages/gooddata-dbt/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ gooddata-dbt = "gooddata_dbt.main:main"
3838
test = [
3939
"pytest~=8.3.4",
4040
"pytest-cov~=6.0.0",
41+
"pytest-json-report==1.5.0",
4142
]
4243
type = [
4344
"mypy~=1.11.2",

packages/gooddata-dbt/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependency_groups =
1111
setenv =
1212
COVERAGE_CORE=sysmon
1313
commands =
14-
pytest -v --cov=src/gooddata_dbt --cov-report=xml tests {posargs}
14+
pytest -v --cov=src/gooddata_dbt --cov-report=xml tests {posargs} --json-report --json-report-file=.json-report-{envname}.json
1515

1616
[testenv:type-check]
1717
runner = uv-venv-lock-runner

packages/gooddata-fdw/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Source = "https://github.com/gooddata/gooddata-python-sdk"
5151
test = [
5252
"pytest~=8.3.4",
5353
"pytest-cov~=6.0.0",
54+
"pytest-json-report==1.5.0",
5455
"vcrpy~=8.0.0",
5556
# TODO - Bump the version together with bumping the version of openapi generator
5657
"urllib3~=2.6.0",

packages/gooddata-fdw/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependency_groups =
1111
setenv =
1212
COVERAGE_CORE=sysmon
1313
commands =
14-
pytest -v --cov=src/gooddata_fdw --cov-report=xml tests {posargs}
14+
pytest -v --cov=src/gooddata_fdw --cov-report=xml tests {posargs} --json-report --json-report-file=.json-report-{envname}.json
1515

1616
[testenv:type-check]
1717
runner = uv-venv-lock-runner

packages/gooddata-flexconnect/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test = [
5858
"jsonschema~=4.23.0",
5959
"pytest~=8.3.4",
6060
"pytest-cov~=6.0.0",
61+
"pytest-json-report==1.5.0",
6162
]
6263
type = [
6364
"mypy~=1.11.2",

packages/gooddata-flexconnect/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependency_groups =
1111
setenv =
1212
COVERAGE_CORE=sysmon
1313
commands =
14-
pytest -v --cov=src/gooddata_flexconnect --cov-report=xml tests {posargs}
14+
pytest -v --cov=src/gooddata_flexconnect --cov-report=xml tests {posargs} --json-report --json-report-file=.json-report-{envname}.json
1515

1616
[testenv:type-check]
1717
runner = uv-venv-lock-runner

packages/gooddata-flight-server/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ gooddata-flight-server = "gooddata_flight_server.cli:server_cli"
6262
test = [
6363
"pytest~=8.3.4",
6464
"pytest-cov~=6.0.0",
65+
"pytest-json-report==1.5.0",
6566
]
6667
type = [
6768
"mypy~=1.11.2",

packages/gooddata-flight-server/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependency_groups =
1111
setenv =
1212
COVERAGE_CORE=sysmon
1313
commands =
14-
pytest -v --cov=src/gooddata_flight_server --cov-report=xml tests {posargs}
14+
pytest -v --cov=src/gooddata_flight_server --cov-report=xml tests {posargs} --json-report --json-report-file=.json-report-{envname}.json
1515

1616
[testenv:type-check]
1717
runner = uv-venv-lock-runner

packages/gooddata-pandas/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Source = "https://github.com/gooddata/gooddata-python-sdk"
5555
test = [
5656
"pytest~=8.3.4",
5757
"pytest-cov~=6.0.0",
58+
"pytest-json-report==1.5.0",
5859
"pytest-snapshot==0.9.0",
5960
"pytest-order~=1.3.0",
6061
"vcrpy~=8.0.0",

0 commit comments

Comments
 (0)