Skip to content

Commit 80e9b96

Browse files
committed
Enable crash dumps and diagnostic logs for vstest
1 parent 0b81fca commit 80e9b96

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
- name: Run component tests against ${{ matrix.multitarget }}
160160
if: ${{ matrix.multitarget == 'uwp' || matrix.multitarget == 'wasdk' }}
161161
id: test-platform
162-
run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ matrix.multitarget }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ matrix.multitarget }}.trx" /Blame
162+
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"
163163

164164
- name: Create test reports
165165
run: |
@@ -195,6 +195,13 @@ jobs:
195195
name: CrashDumps-${{ matrix.multitarget }}-winui${{ matrix.winui }}
196196
path: '${{ github.workspace }}/CrashDumps'
197197

198+
- name: Artifact - vstest-diagnostic-log
199+
uses: actions/upload-artifact@v4
200+
if: always()
201+
with:
202+
name: 'vstest-diagnostic-log-${{ matrix.multitarget }}-winui${{ matrix.winui }}.txt'
203+
path: '${{ github.workspace }}/vstest-diagnostic-log.txt'
204+
198205
- name: Analyze Dump
199206
if: ${{ steps.detect-dump.outputs.DUMP_FILE != '' && (env.ENABLE_DIAGNOSTICS == 'true' || env.COREHOST_TRACE != '') && always() }}
200207
run: |

0 commit comments

Comments
 (0)