You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -55,16 +67,23 @@ Run `swift test --filter "$(swift run xcode-selective-test . --json | jq -r ". |
55
67
56
68
NB: This command assumes you have [jq](https://jqlang.github.io/jq/) tool installed. You can install it with Homebrew via `brew install jq`.
57
69
58
-
### Use case: Xcode-based project, prepare test plan locally
70
+
### Use case: Xcode-based project, run tests locally
71
+
72
+
1. Install the tool (see [Installation: Xcode](#xcode))
73
+
2. Select your project in the Xcode's file list
74
+
3. Right-click on it and select `SelectiveTestingPlugin`
75
+
4. Wait for the tool to run
76
+
5. Run tests normally, SelectiveTesting would modify your test plan according to the local changes
77
+
78
+
Alternatively, you can use CLI to achieve the same result:
59
79
60
-
1. Install the tool
61
-
2. Run `mint run mikeger/XcodeSelectiveTesting@0.7.0 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
62
-
3. Run tests normally, SelectiveTesting would modify your test plan according to the local changes
80
+
1. Run `mint run mikeger/XcodeSelectiveTesting@0.8.0 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
81
+
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes
63
82
64
83
### Use case: Xcode-based project, execute tests on the CI
65
84
66
85
1. Add code to install the tool
67
-
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.7.0 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
86
+
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.8.0 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
0 commit comments