Skip to content

Commit a325625

Browse files
committed
- add maccatalyst instructions
1 parent 59cdf17 commit a325625

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/instructions/uitests.instructions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,21 @@ xcrun simctl list devices | grep "$UDID"
262262
dotnet test src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj --filter "FullyQualifiedName~Issue12345"
263263
```
264264

265+
**MacCatalyst:**
266+
267+
**Step 1: Deploy TestCases.HostApp to MacCatalyst**
268+
```bash
269+
# Use local dotnet if available, otherwise use global dotnet
270+
./bin/dotnet/dotnet build src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj -f net10.0-maccatalyst -t:Run
271+
# OR:
272+
dotnet build src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj -f net10.0-maccatalyst -t:Run
273+
```
274+
275+
**Step 2: Run your specific test**
276+
```bash
277+
dotnet test src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj --filter "FullyQualifiedName~Issue12345"
278+
```
279+
265280
### Troubleshooting
266281

267282
**Android App Crashes on Launch:**

AGENTS.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,23 @@ dotnet cake eng/devices/android.cake --target=uitest --test-filter="FullyQualifi
223223
xcrun simctl list devices | grep "$UDID"
224224
```
225225

226-
3. **Run specific tests:**
226+
3. **Deploy TestCases.HostApp to MacCatalyst:**
227227
```bash
228-
# Run specific test by name
228+
# Build and run the MacCatalyst app
229+
dotnet build src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj -f net10.0-maccatalyst -t:Run
230+
```
231+
232+
4. **Run specific tests:**
233+
```bash
234+
# Android tests
229235
dotnet test src/Controls/tests/TestCases.Android.Tests/Controls.TestCases.Android.Tests.csproj --filter "FullyQualifiedName~Issue11311"
230236

237+
# iOS tests
238+
dotnet test src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj --filter "FullyQualifiedName~Issue11311"
239+
240+
# MacCatalyst tests
241+
dotnet test src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj --filter "FullyQualifiedName~Issue11311"
242+
231243
# Run all tests for a category
232244
dotnet test src/Controls/tests/TestCases.Android.Tests/Controls.TestCases.Android.Tests.csproj --filter "Category=CollectionView"
233245
```

docs/UITesting-Guide.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,21 @@ For rapid development and debugging, you can run specific tests directly:
365365
dotnet test src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj --filter "FullyQualifiedName~Issue11311"
366366
```
367367

368+
**MacCatalyst:**
369+
370+
1. Deploy TestCases.HostApp to MacCatalyst:
371+
```bash
372+
# Use local dotnet if available, otherwise use global dotnet
373+
./bin/dotnet/dotnet build src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj -f net10.0-maccatalyst -t:Run
374+
# OR:
375+
dotnet build src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj -f net10.0-maccatalyst -t:Run
376+
```
377+
378+
2. Run specific test:
379+
```bash
380+
dotnet test src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj --filter "FullyQualifiedName~Issue11311"
381+
```
382+
368383
### Full Test Suite: Using Cake Build System
369384

370385
For comprehensive CI-like test runs:

0 commit comments

Comments
 (0)