Testing
Purpose
Guard Infrastructure logic and pure Core behavior without requiring a running Avalonia shell for every change.
Code location
Mnemo.Infrastructure.Tests/— primary test assembly (adjust if solution adds more test projects).
Running tests
From repo root:
dotnet test
Target one project:
dotnet test Mnemo.Infrastructure.Tests\Mnemo.Infrastructure.Tests.csproj
Conventions
- Prefer testing Infrastructure services and pure algorithms with mocked interfaces from Core.
- UI interaction tests are heavier—reserve for regressions that truly need visual tree automation (not yet documented here).
Gotchas
- Tests touching SQLite or ONNX may need deterministic temp paths—follow patterns in existing tests when present.