docker run --rm -v "$PWD":/src -w /src mcr.microsoft.com/dotnet/sdk:9.0 bash -lc '...dotnet test /tmp/gmailtests/GmailTests.csproj...'
0
✅ pass
not recorded
Diagnostics
Inspect persisted Correspondence rows for ExternalMessageId, ExternalThreadId, ExternalFrom, and ExternalTo to confirm Gmail imports keep thread identity plus sender/recipient labels.
Hit POST /api/gmail/import twice with the same Gmail message id to confirm the duplicate-safe Imported/Skipped contract.
Hit POST /api/gmail/import-thread twice with the same thread payload to confirm repeat imports skip already-linked message ids instead of duplicating correspondence.
Read JobTrackerApi.Tests/GmailControllerTests.cs for the durable expected behavior around repeat single-message and repeat thread imports.
Important caveat
The repository’s main JobTrackerApi.Tests project still had unrelated pre-existing compile failures outside Gmail tests when this task finished, so the exact planned command dotnet test JobTrackerApi.Tests/JobTrackerApi.Tests.csproj --filter GmailControllerTests remained blocked at that point by broader test drift. Gmail coverage itself passed when isolated.