Skip to content

Commit

Permalink
When webtest fails, upload a screenshot of the error to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanib committed Oct 31, 2024
1 parent d49eef5 commit f629873
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jira_test_mode_storage_path='/var/www/html/var/issues.json'
authorization_attribute_name='eduPersonEntitlement'
surfconext_representative_authorization='urn:mace:surfnet.nl:surfnet.nl:sab:role:SURFconext-verantwoordelijke'
test_idp_entity_ids='["http://mock-idp","test-idp-1"]'
PANTHER_ERROR_SCREENSHOT_DIR="./var/error-screenshots"
8 changes: 8 additions & 0 deletions .github/workflows/test-integration-webtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@ jobs:
working-directory: spdashboard
run: |
${DOCKER_COMPOSE_PHP} sh -c 'composer webtest'
- name: Upload error screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: error-screenshots
path: spdashboard/var/error-screenshots
retention-days: 2

0 comments on commit f629873

Please sign in to comment.