Skip to content

Commit 40b6d8b

Browse files
committed
Add blame-hang-timeout to account test commands to surface hanging tests
1 parent edc9f2d commit 40b6d8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/account.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ jobs:
112112
if [[ "${{ vars.SONAR_PROJECT_KEY }}" == "" ]] || [[ "${{ vars.SONAR_ORGANIZATION }}" == "" ]] || [[ "${{ secrets.SONAR_TOKEN }}" == "" ]]; then
113113
echo "SonarCloud is not enabled. Skipping SonarCloud analysis."
114114
dotnet build account/Account.slnf --no-restore /p:Version=${{ steps.generate_version.outputs.version }} /p:DeploymentCommitHash=${{ github.event.pull_request.head.sha || github.sha }} /p:DeploymentGithubActionId=${{ github.run_id }} &&
115-
dotnet test account/Account.slnf --no-build
115+
dotnet test account/Account.slnf --no-build --blame-hang-timeout 5m --logger "console;verbosity=normal"
116116
else
117117
dotnet sonarscanner begin /k:"${{ vars.SONAR_PROJECT_KEY }}" /o:"${{ vars.SONAR_ORGANIZATION }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.dotcover.reportsPaths="coverage/dotCover.html" &&
118118
dotnet build account/Account.slnf --no-restore /p:Version=${{ steps.generate_version.outputs.version }} /p:DeploymentCommitHash=${{ github.event.pull_request.head.sha || github.sha }} /p:DeploymentGithubActionId=${{ github.run_id }} &&
119-
dotnet dotcover test account/Account.slnf --no-build --dcOutput=coverage/dotCover.html --dcReportType=HTML --dcFilters="+:Account*;+:SharedKernel;-:*.Tests;-:type=*.AppHost.*" &&
119+
dotnet dotcover test account/Account.slnf --no-build --blame-hang-timeout 5m --logger "console;verbosity=normal" --dcOutput=coverage/dotCover.html --dcReportType=HTML --dcFilters="+:Account*;+:SharedKernel;-:*.Tests;-:type=*.AppHost.*" &&
120120
dotnet sonarscanner end
121121
fi
122122

0 commit comments

Comments
 (0)