Skip to content

Commit

Permalink
Enable crash dumps and diagnostic logs for vstest
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Aug 26, 2024
1 parent 0b81fca commit 2a61fa4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
- name: Run component tests against ${{ matrix.multitarget }}
if: ${{ matrix.multitarget == 'uwp' || matrix.multitarget == 'wasdk' }}
id: test-platform
run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ matrix.multitarget }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ matrix.multitarget }}.trx" /Blame
run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ matrix.multitarget }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ matrix.multitarget }}.trx" /Blame:"CollectDump;DumpType=Full;CollectHangDump;TestTimeout=30m;HangDumpType=Full" /Diag:"${{ github.workspace }}/vstest-diagnostic-log.txt"

- name: Create test reports
run: |
Expand Down Expand Up @@ -195,6 +195,12 @@ jobs:
name: CrashDumps-${{ matrix.multitarget }}-winui${{ matrix.winui }}
path: '${{ github.workspace }}/CrashDumps'

- name: Artifact - vstest-diagnostic-log
uses: actions/upload-artifact@v4
if: always()
name: vstest-diagnostic-log-${{ matrix.multitarget }}-winui${{ matrix.winui }}.txt
path: '${{ github.workspace }}/vstest-diagnostic-log.txt'

- name: Analyze Dump
if: ${{ steps.detect-dump.outputs.DUMP_FILE != '' && (env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '') && always() }}
run: |
Expand Down

0 comments on commit 2a61fa4

Please sign in to comment.