Skip to content

Commit 4c7e941

Browse files
Cursor rules for iOS codebase
1 parent 3a88233 commit 4c7e941

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
alwaysApply: true
3+
---
4+
5+
# Building and Testing Verification
6+
7+
After making code changes to this Xcode project, always verify your work by building and running tests.
8+
9+
## Build Verification
10+
11+
After modifying Swift files, run from the project root:
12+
13+
```bash
14+
make build
15+
```
16+
17+
The build must succeed (`BUILD SUCCEEDED`) before considering the task complete.
18+
19+
## Unit Test Verification
20+
21+
After making functional changes, run unit tests:
22+
23+
```bash
24+
make test
25+
```
26+
27+
Unit tests should pass. Note: Some test flakiness may occur due to shared mock state - if a single test fails intermittently, re-run to confirm.
28+
29+
## UI Test Verification
30+
31+
After making UI changes, run UI tests:
32+
33+
```bash
34+
make ui-test
35+
```
36+
37+
UI tests launch the app through the automation runner. They require an interactive macOS session and camera permission.
38+
39+
## When to Verify
40+
41+
- **Always run `make build`** after modifying any `.swift` file
42+
- **Run `make test`** after modifying Services, Models, Stores, or ViewModels
43+
- **Run `make ui-test`** after modifying Views, ContentView, or any UI-related code
44+
- **Clean build** (`xcodebuild clean build`) if encountering unexpected errors after file moves or renames

0 commit comments

Comments
 (0)