diff options
| author | Fuwn <[email protected]> | 2026-03-24 06:35:24 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-24 06:35:24 +0000 |
| commit | 6eb73f5fc1b7b2b4a5f50493c74a84799dc2882a (patch) | |
| tree | d1f6065f045edbc8b73034a36c68bd9dae31af7d /justfile | |
| parent | feat: add localize just recipe (diff) | |
| download | sora-testing-6eb73f5fc1b7b2b4a5f50493c74a84799dc2882a.tar.xz sora-testing-6eb73f5fc1b7b2b4a5f50493c74a84799dc2882a.zip | |
feat: add test helper just recipes
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -10,6 +10,9 @@ alias fmt := format alias b := build alias gen := generate alias loc := localize +alias t := test +alias to := test_only +alias v := verify fetch: curl https://raw.githubusercontent.com/Fuwn/justfiles/refs/heads/main/xcode.just > xcode.just @@ -31,6 +34,21 @@ build_ios_simulator configuration="Release": localize destination="platform=macOS" configuration="Debug": xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{target}} -destination '{{destination}}' CODE_SIGNING_ALLOWED=NO build +_test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug" *xcodebuild_args: + xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{scheme}} -destination '{{destination}}' {{xcodebuild_args}} test + +test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug": + just _test "{{destination}}" "{{scheme}}" "{{configuration}}" + +test_only filter destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug": + just _test "{{destination}}" "{{scheme}}" "{{configuration}}" "-only-testing:{{filter}}" + +verify configuration="Debug": + just format + just lint + just localize "platform=macOS" "{{configuration}}" + just test "platform=iOS Simulator,name=iPhone 17 Pro" "SoraTests" "{{configuration}}" + test_ios_simulator scheme="SoraTests": xcodebuild -project Sora.xcodeproj -scheme {{scheme}} -destination 'platform=iOS Simulator,name=iPhone 17 Pro' test |