summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2022-09-15 18:32:19 +0300
committerGitHub <noreply@github.com>2022-09-15 18:32:19 +0300
commit66c4e600646f37918943dcda4ae9f65cf14781f0 (patch)
tree94c22b4ec3289c0d0dab0b0ae361c55691667f32
parent67fdd9a294206bb7f8eea38fd1489d8ec86b4cfb (diff)
downloadredis-py-66c4e600646f37918943dcda4ae9f65cf14781f0.tar.gz
Adding support for readable test results (#2381)
* test result xml share * trying to limit to failed * pathing upload * syntax * syntax * renaming test results * name fix
-rw-r--r--.github/workflows/integration.yaml15
-rw-r--r--tox.ini8
2 files changed, 19 insertions, 4 deletions
diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml
index 58bde68..c1110b1 100644
--- a/.github/workflows/integration.yaml
+++ b/.github/workflows/integration.yaml
@@ -66,6 +66,21 @@ jobs:
pip install -U setuptools wheel
pip install -r dev_requirements.txt
tox -e ${{matrix.test-type}}-${{matrix.connection-type}}
+ - uses: actions/upload-artifact@v2
+ if: success() || failure()
+ with:
+ name: pytest-results-${{matrix.test-type}}
+ path: '${{matrix.test-type}}*results.xml'
+ - name: View Test Results
+ uses: dorny/test-reporter@v1
+ if: success() || failure()
+ with:
+ name: Test Results ${{matrix.python-version}} ${{matrix.test-type}}-${{matrix.connection-type}}
+ path: '${{matrix.test-type}}*results.xml'
+ reporter: java-junit
+ list-suites: failed
+ list-tests: failed
+ max-annotations: 10
- name: Upload codecov coverage
uses: codecov/codecov-action@v2
with:
diff --git a/tox.ini b/tox.ini
index 37603fe..6afafc2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -288,10 +288,10 @@ setenv =
CLUSTER_URL = "redis://localhost:16379/0"
UNSTABLE_CLUSTER_URL = "redis://localhost:6372/0"
commands =
- standalone: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' {posargs}
- standalone-uvloop: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --uvloop {posargs}
- 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}
- 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}
+ standalone: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --junit-xml=standalone-results.xml {posargs}
+ standalone-uvloop: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' --junit-xml=standalone-uvloop-results.xml --uvloop {posargs}
+ 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}
+ 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}
[testenv:redis5]
deps =