File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -323,9 +323,9 @@ swift test
323323
324324Tests for different language model backends have varying requirements:
325325
326- - ** CoreML tests** : ` swift test --enable-trait CoreML ` + ` ENABLE_COREML_TESTS=1 ` + ` HF_TOKEN ` (downloads model from HuggingFace)
327- - ** MLX tests** : ` swift test --enable-trait MLX ` + ` ENABLE_MLX_TESTS=1 ` + ` HF_TOKEN ` (uses pre-defined model)
328- - ** Llama tests** : ` swift test --enable-trait Llama ` + ` LLAMA_MODEL_PATH ` (points to local GGUF file)
326+ - ** CoreML tests** : ` swift test --traits CoreML ` + ` ENABLE_COREML_TESTS=1 ` + ` HF_TOKEN ` (downloads model from HuggingFace)
327+ - ** MLX tests** : ` swift test --traits MLX ` + ` ENABLE_MLX_TESTS=1 ` + ` HF_TOKEN ` (uses pre-defined model)
328+ - ** Llama tests** : ` swift test --traits Llama ` + ` LLAMA_MODEL_PATH ` (points to local GGUF file)
329329- ** Anthropic tests** : ` ANTHROPIC_API_KEY ` (no traits needed)
330330- ** OpenAI tests** : ` OPENAI_API_KEY ` (no traits needed)
331331- ** Ollama tests** : No setup needed (skips in CI)
@@ -342,5 +342,5 @@ export ANTHROPIC_API_KEY=your_anthropic_key
342342export OPENAI_API_KEY=your_openai_key
343343
344344# Run all tests with traits enabled
345- swift test --enable-trait CoreML --enable-trait MLX --enable-trait Llama
345+ swift test --traits CoreML, MLX, Llama
346346```
You can’t perform that action at this time.
0 commit comments