Skip to content

Commit 0ece591

Browse files
committed
Keep the SQL Server-backed web tests out of CI
The two WebTests examples boot the app through WebApplicationFactory and need a database, which the hosted runner does not have. Claude-Session: https://claude.ai/code/session_01Nyppsn3VF6d1Sno5orPWiV
1 parent f226188 commit 0ece591

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ jobs:
3535
- name: Build
3636
run: dotnet build src/AspNetCoreTemplate.sln -c Release --no-restore
3737

38+
# AspNetCoreTemplate.Web.Tests is excluded: its two example tests boot the
39+
# whole app through WebApplicationFactory, which connects to SQL Server.
40+
# Run them locally against a database.
3841
- name: Test
3942
run: >
40-
dotnet test src/AspNetCoreTemplate.sln
43+
dotnet test src/Tests/AspNetCoreTemplate.Services.Data.Tests/AspNetCoreTemplate.Services.Data.Tests.csproj
4144
-c Release --no-build --logger "trx;LogFileName=test-results.trx"
4245
4346
# The renamer tool has its own solution and still targets net6.0; the

0 commit comments

Comments
 (0)