Skip to content

Commit 8825bdd

Browse files
committed
Squashed commit of the following:
commit 6a604d6 Author: Anthony Drendel <me@anthonydrendel.com> Date: Mon Apr 6 14:13:42 2026 +0200 Manually fix IntegrationTesting project file commit 3dbc207 Author: Anthony Drendel <atdrendel@users.noreply.github.com> Date: Mon Apr 6 12:56:23 2026 +0200 Update IntegrationTesting/IntegrationTesting.xcodeproj/project.pbxproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> commit 21a0ab0 Author: Anthony Drendel <me@anthonydrendel.com> Date: Sun Apr 5 18:12:02 2026 +0200 Add IntegrationTesting Xcode project and remove MLXLMIntegrationTests commit 39cd9fc Author: Anthony Drendel <me@anthonydrendel.com> Date: Sat Apr 4 15:07:28 2026 +0200 Update documentation commit 6d3fafa Author: Anthony Drendel <me@anthonydrendel.com> Date: Sat Apr 4 14:58:38 2026 +0200 Add MLXLMIntegrationTests commit 89de43c Author: Anthony Drendel <me@anthonydrendel.com> Date: Fri Apr 3 12:05:24 2026 +0200 Add Mistral3, Nemotron, and Qwen3.5 tool call integration test helpers
1 parent 65243cc commit 8825bdd

9 files changed

Lines changed: 1154 additions & 18 deletions

File tree

CONTRIBUTING.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,43 @@ possible.
1414
You can also run the formatters manually as follows:
1515

1616
```
17-
swift-format format --in-place --recursive Libraries Tools Applications
17+
swift-format format --in-place --recursive Libraries Tools Applications IntegrationTesting
1818
```
1919
2020
or run `pre-commit run --all-files` to check all files in the repo.
2121
22+
## Running Tests
23+
24+
Unit tests run without any special hardware and do not download models:
25+
26+
```
27+
swift test
28+
```
29+
30+
Integration tests verify end-to-end model loading and generation. They require
31+
macOS with Metal and download models from Hugging Face Hub on first run. These
32+
tests do not run in CI.
33+
34+
Open `IntegrationTesting/IntegrationTesting.xcodeproj` in Xcode and run the
35+
test target (`Cmd+U` or via the Test Navigator), or use `xcodebuild`:
36+
37+
```bash
38+
# Run all integration tests
39+
xcodebuild test \
40+
-project IntegrationTesting/IntegrationTesting.xcodeproj \
41+
-scheme IntegrationTesting \
42+
-destination 'platform=macOS'
43+
44+
# Run a single test
45+
xcodebuild test \
46+
-project IntegrationTesting/IntegrationTesting.xcodeproj \
47+
-scheme IntegrationTesting \
48+
-destination 'platform=macOS' \
49+
-only-testing:IntegrationTestingTests/ToolCallIntegrationTests/qwen35FormatAutoDetection\(\)
50+
```
51+
52+
See [Libraries/IntegrationTestHelpers/README.md](Libraries/IntegrationTestHelpers/README.md) for more details.
53+
2254
## Issues
2355

2456
We use GitHub issues to track public bugs. Please ensure your description is

0 commit comments

Comments
 (0)