Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Improve automated test output on failure #1618

Merged
merged 9 commits into from
Nov 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying out a couple of changes to improve logging in the CI/CD
basiliskus committed Nov 26, 2024
commit 0adc69ffee7513b2bd6078c0674f4ba290454342
19 changes: 10 additions & 9 deletions .github/workflows/automated-staging-test-run.yml
Original file line number Diff line number Diff line change
@@ -16,13 +16,14 @@ jobs:
- name: Run automated tests
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AUTOMATED_TEST_AZURE_STORAGE_CONNECTION_STRING }}
run: ./gradlew rs-e2e:clean rs-e2e:automatedTest
ORG_GRADLE_CONSOLE: plain
run: ./gradlew rs-e2e:clean rs-e2e:automatedTest --info --stacktrace

- name: Send slack notification on test failure
if: failure()
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: "Automated Staging RS Integration Test Failed!: https://github.com/CDCgov/trusted-intermediary/actions/runs/${{ github.run_id }}"
# - name: Send slack notification on test failure
# if: failure()
# uses: slackapi/slack-github-action@v2.0.0
# with:
# webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
# webhook-type: incoming-webhook
# payload: |
# text: "Automated Staging RS Integration Test Failed!: https://github.com/CDCgov/trusted-intermediary/actions/runs/${{ github.run_id }}"
9 changes: 9 additions & 0 deletions rs-e2e/build.gradle
Original file line number Diff line number Diff line change
@@ -36,4 +36,13 @@ tasks.named('test') {
task automatedTest(type: Test) {
useJUnitPlatform()
include '**/AutomatedTest.*'

testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
showExceptions true
showCauses true
showStackTraces true
showStandardStreams true
}
}