Skip to content

Commit 9d51a23

Browse files
committed
init test-integration-report
1 parent 8a24e26 commit 9d51a23

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/stage-4-acceptance.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,31 @@ jobs:
130130
- name: "Save result"
131131
run: |
132132
echo "Nothing to save"
133+
134+
- name: Upload Test Results
135+
if: always()
136+
uses: actions/upload-artifact@v4
137+
with:
138+
name: test-results
139+
path: test-results.xml
140+
141+
- name: Gather summaries
142+
if: always()
143+
uses: actions/download-artifact@v4
144+
with:
145+
path: summary
146+
pattern: ci-summary-*
147+
merge-multiple: true
148+
149+
- name: Test Report
150+
if: always()
151+
uses: phoenix-actions/test-reporting@v15
152+
with:
153+
name: Test Summary
154+
path: test-results.xml
155+
reporter: java-junit
156+
output-to: step-summary
157+
133158
test-accessibility:
134159
name: "Accessibility test"
135160
runs-on: ubuntu-latest

scripts/tests/integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ cd "$(git rev-parse --show-toplevel)"
1818
# tasks in scripts/test.mk.
1919

2020
make dependencies install-python
21-
poetry run pytest tests/integration/ --durations=10 --cov-report= --cov src/
21+
poetry run pytest tests/integration/ --durations=10 --cov-report= --cov src/ --disable-warnings --tb=short --junitxml=test-results.xml

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class FunctionNotActiveError(Exception):
116116

117117

118118
def wait_for_function_active(function_name, lambda_client):
119-
for attempt in stamina.retry_context(on=FunctionNotActiveError):
119+
for attempt in stamina.retry_context(on=FunctionNotActiveError, attempts=20, timeout=120):
120120
with attempt:
121121
logger.info("waiting")
122122
response = lambda_client.get_function(FunctionName=function_name)

0 commit comments

Comments
 (0)