Running Local Model Tests
March 31, 2026 ยท View on GitHub
Configuration
The test model cache directory name is configured in sdk/cs/test/FoundryLocal.Tests/appsettings.Test.json:
{
"TestModelCacheDirName": "test-data-shared"
}
If the value is a directory name it will be resolved as
Run the tests
The tests will automatically find the models in the configured test model cache directory.
cd /path/to/parent-dir/foundry-local-sdk/sdk/cs/test/FoundryLocal.Tests
dotnet test Microsoft.AI.Foundry.Local.Tests.csproj --configuration Release# Running Local Model Tests