Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 771 Bytes

File metadata and controls

24 lines (17 loc) · 771 Bytes

Running Local Model Tests

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 /../{TestModelCacheDirName}. Otherwise the value will be resolved using Path.GetFullPath, which allows for absolute paths or relative paths based on the current working directory.

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