Skip to content

Commit a8e617a

Browse files
committed
ci: Store pytest results for CI display
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 7a5ad08 commit a8e617a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.circleci/config.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ commands:
5959
GEVENT_TEST: "<<parameters.gevent>>"
6060
command: |
6161
. venv/bin/activate
62-
coverage run --source=instana -m pytest -v <<parameters.tests>>
62+
coverage run --source=instana -m pytest -v --junitxml=test-results <<parameters.tests>>
6363
coverage report -m
6464
coverage html
6565
66+
store-pytest-results:
67+
steps:
68+
- store_test_results:
69+
path: test-results
70+
6671
store-coverage-report:
6772
steps:
6873
- store_artifacts:
@@ -91,6 +96,7 @@ jobs:
9196
- pip-install-deps:
9297
requirements: "tests/requirements-307.txt"
9398
- run-tests-with-coverage-report
99+
- store-pytest-results
94100
- store-coverage-report
95101

96102
python38:
@@ -114,6 +120,7 @@ jobs:
114120
- checkout
115121
- pip-install-deps
116122
- run-tests-with-coverage-report
123+
- store-pytest-results
117124
- store-coverage-report
118125

119126
python39:
@@ -137,6 +144,7 @@ jobs:
137144
- checkout
138145
- pip-install-deps
139146
- run-tests-with-coverage-report
147+
- store-pytest-results
140148
- store-coverage-report
141149

142150
python310:
@@ -161,6 +169,7 @@ jobs:
161169
- pip-install-deps:
162170
requirements: "tests/requirements-310.txt"
163171
- run-tests-with-coverage-report
172+
- store-pytest-results
164173
- store-coverage-report
165174

166175
py38couchbase:
@@ -176,6 +185,7 @@ jobs:
176185
- run-tests-with-coverage-report:
177186
couchbase: "true"
178187
tests: "tests/clients/test_couchbase.py"
188+
- store-pytest-results
179189
- store-coverage-report
180190

181191
py37cassandra:
@@ -193,6 +203,7 @@ jobs:
193203
- run-tests-with-coverage-report:
194204
cassandra: "true"
195205
tests: "tests/clients/test_cassandra-driver.py"
206+
- store-pytest-results
196207
- store-coverage-report
197208

198209
py38gevent:
@@ -206,6 +217,7 @@ jobs:
206217
- run-tests-with-coverage-report:
207218
gevent: "true"
208219
tests: "tests/frameworks/test_gevent.py"
220+
- store-pytest-results
209221
- store-coverage-report
210222

211223
workflows:

0 commit comments

Comments
 (0)