Skip to content

Commit c0c7ef3

Browse files
committed
Write tests summary with Liquid Test Reports
DISABLE_GITHUB_REPORTER disables the built-in TUnit reporter
1 parent e026e26 commit c0c7ef3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"dotnet-stryker"
1616
],
1717
"rollForward": true
18+
},
19+
"liquidtestreports.cli": {
20+
"version": "2.0.0-beta.6",
21+
"commands": [
22+
"liquid"
23+
],
24+
"rollForward": false
1825
}
1926
}
2027
}

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ on: push
55
env:
66
Configuration: Release
77
ContinuousIntegrationBuild: true
8+
DISABLE_GITHUB_REPORTER: true
89
DOTNET_CLI_TELEMETRY_OPTOUT: true
910
DOTNET_NOLOGO: true
1011
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
1112
TERM: xterm
1213

14+
defaults:
15+
run:
16+
shell: bash
17+
1318
jobs:
1419
package:
1520
strategy:
@@ -45,6 +50,10 @@ jobs:
4550
run: dotnet build --no-restore
4651
- name: 🧪 Run tests
4752
run: dotnet test --no-build
53+
- name: 📊 Write tests summary
54+
run: |
55+
dotnet tool restore
56+
dotnet liquid --inputs "File=*.trx" --output-file $GITHUB_STEP_SUMMARY
4857
- name: 📤 Upload received files from failing tests
4958
uses: actions/upload-artifact@v4
5059
if: failure()

0 commit comments

Comments
 (0)