swift-unit-tests
如何运行快速单元测试
📖 中文导读:如何运行快速单元测试 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: swift-unit-tests description: How to run swift unit tests
- List available simulators with
xcrun simctl list devices available - If one is booted already, use that. Prefer iPhone xx Pros, the latest ones
- Run the unit tests with
xcodebuild test -project YourApp.xcodeproj -scheme YourScheme -destination 'platform=iOS Simulator,name=iPhone 17 Pro'. The app is usually in the root of the directory. The simulator is the one from step 2. The scheme has to be found out