Skip to content

Commit 66c4e60

Browse files
authored
Adding support for readable test results (redis#2381)
* test result xml share * trying to limit to failed * pathing upload * syntax * syntax * renaming test results * name fix
1 parent 67fdd9a commit 66c4e60

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/integration.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@ jobs:
6666
pip install -U setuptools wheel
6767
pip install -r dev_requirements.txt
6868
tox -e ${{matrix.test-type}}-${{matrix.connection-type}}
69+
- uses: actions/upload-artifact@v2
70+
if: success() || failure()
71+
with:
72+
name: pytest-results-${{matrix.test-type}}
73+
path: '${{matrix.test-type}}*results.xml'
74+
- name: View Test Results
75+
uses: dorny/test-reporter@v1
76+
if: success() || failure()
77+
with:
78+
name: Test Results ${{matrix.python-version}} ${{matrix.test-type}}-${{matrix.connection-type}}
79+
path: '${{matrix.test-type}}*results.xml'
80+
reporter: java-junit
81+
list-suites: failed
82+
list-tests: failed
83+
max-annotations: 10
6984
- name: Upload codecov coverage
7085
uses: codecov/codecov-action@v2
7186
with:

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ setenv =
288288
CLUSTER_URL = "redis://localhost:16379/0"
289289
UNSTABLE_CLUSTER_URL = "redis://localhost:6372/0"
290290
commands =
291-
standalone: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' {posargs}
292-
standalone-uvloop: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --uvloop {posargs}
293-
cluster: pytest --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={env:CLUSTER_URL:} --redis-unstable-url={env:UNSTABLE_CLUSTER_URL:} {posargs}
294-
cluster-uvloop: pytest --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={env:CLUSTER_URL:} --redis-unstable-url={env:UNSTABLE_CLUSTER_URL:} --uvloop {posargs}
291+
standalone: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --junit-xml=standalone-results.xml {posargs}
292+
standalone-uvloop: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --junit-xml=standalone-uvloop-results.xml --uvloop {posargs}
293+
cluster: pytest --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={env:CLUSTER_URL:} --redis-unstable-url={env:UNSTABLE_CLUSTER_URL:} --junit-xml=cluster-results.xml {posargs}
294+
cluster-uvloop: pytest --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={env:CLUSTER_URL:} --redis-unstable-url={env:UNSTABLE_CLUSTER_URL:} --junit-xml=cluster-uvloop-results.xml --uvloop {posargs}
295295

296296
[testenv:redis5]
297297
deps =

0 commit comments

Comments
 (0)