Skip to content

Commit 486253c

Browse files
Add trx-to-vsplaylist integration to test pipeline
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent b4272ec commit 486253c

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/dotnetBuild.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,20 @@ jobs:
4343
run: dotnet build -p:ContinuousIntegrationBuild=True --no-restore --configuration Release
4444

4545
- name: Test
46-
run: dotnet test --no-build --configuration Release --verbosity normal
46+
run: dotnet test --no-build --configuration Release --verbosity normal --logger trx --results-directory ./TestResults
47+
48+
- name: Create Failed Tests Playlist
49+
if: always()
50+
uses: BenjaminMichaelis/trx-to-vsplaylist@v2
51+
with:
52+
trx-file-path: './TestResults/*.trx'
53+
test-outcomes: 'Failed'
54+
artifact-name: 'failed-tests-playlist'
55+
56+
- name: Create All Tests Playlist
57+
if: always()
58+
uses: BenjaminMichaelis/trx-to-vsplaylist@v2
59+
with:
60+
trx-file-path: './TestResults/*.trx'
61+
test-outcomes: 'Passed,Failed,NotExecuted,Inconclusive,Timeout,Pending'
62+
artifact-name: 'all-tests-playlist'

0 commit comments

Comments
 (0)