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
@@ -48,15 +48,15 @@ Alternatively, you can use a prebuilt binary release of the tool distributed und
48
48
49
49
### Using Swift Package Manager
50
50
51
-
Add `.package(url: "git@github.com:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "0.14.2"))` to your `Package.swift`'s `dependencies` section.
51
+
Add `.package(url: "git@github.com:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "0.11.3"))` to your `Package.swift`'s `dependencies` section.
52
52
53
53
Use SPM to run the command: `swift run xcode-selective-test`.
54
54
55
55
Alternatively, you can use a prebuilt binary release of the tool distributed under [releases](https://github.com/mikeger/XcodeSelectiveTesting/releases) section.
56
56
57
57
### Using [Mint](https://github.com/yonaskolb/Mint)
@@ -83,15 +83,8 @@ NB: This command assumes you have [jq](https://jqlang.github.io/jq/) tool instal
83
83
84
84
Alternatively, you can use CLI to achieve the same result:
85
85
86
-
1. Run `mint run mikeger/XcodeSelectiveTesting@0.14.2 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
87
-
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes
88
-
89
-
To process multiple test plans, specify the `--test-plan` option multiple times:
90
-
```bash
91
-
mint run mikeger/XcodeSelectiveTesting@0.14.2 YourWorkspace.xcworkspace \
92
-
--test-plan TestPlan1.xctestplan \
93
-
--test-plan TestPlan2.xctestplan
94
-
```
86
+
1. Run `mint run mikeger/XcodeSelectiveTesting@0.11.3 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
87
+
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes
95
88
96
89
### Use case: Xcode-based project, execute tests on the CI, no test plan
97
90
@@ -103,17 +96,9 @@ mint run mikeger/XcodeSelectiveTesting@0.14.2 YourWorkspace.xcworkspace \
103
96
### Use case: Xcode-based project, execute tests on the CI, with test plan
104
97
105
98
1. Add code to install the tool
106
-
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.14.2 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
99
+
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.11.3 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
107
100
3. Execute your tests
108
101
109
-
To process multiple test plans on CI:
110
-
```bash
111
-
mint run mikeger/XcodeSelectiveTesting@0.14.2 YourWorkspace.xcworkspace \
112
-
--test-plan TestPlan1.xctestplan \
113
-
--test-plan TestPlan2.xctestplan \
114
-
--base-branch $PR_BASE_BRANCH
115
-
```
116
-
117
102
### Use case: GitHub Actions, other cases when the git repo is not in the shape to provide the changeset out of the box
118
103
119
104
1. Add code to install the tool
@@ -129,7 +114,7 @@ Git allows us to find what files were touched in the changeset.
129
114
```bash
130
115
Root
131
116
├── Dependencies
132
-
│ ├── Login
117
+
│ └── Login
133
118
│ ├── ❗️LoginAssembly.swift
134
119
│ └── ...
135
120
├── MyProject.xcodeproj
@@ -160,7 +145,7 @@ This is the hardest part: dealing with obscure Xcode formats. But if we get that
160
145
161
146
-`--help`: Display all command line options
162
147
-`--base-branch`: Branch to compare against to find the relevant changes. If emitted, a local changeset is used (development mode).
163
-
-`--test-plan`: Path to the test plan. If not given, tool would try to infer the path. Can be specified multiple times to process multiple test plans.
148
+
-`--test-plan`: Path to the test plan. If not given, tool would try to infer the path.
164
149
-`--json`: Provide output in JSON format (STDOUT).
165
150
-`--dependency-graph`: Opens Safari with a dependency graph visualization. Attention: if you don't trust Javascript ecosystem prefer using `--dot` option. More info [here](https://github.com/mikeger/XcodeSelectiveTesting/wiki/How-to-visualize-your-dependency-structure).
166
151
-`--dot`: Output dependency graph in Dot (Graphviz) format. To be used with Graphviz: `brew install graphviz`, then `xcode-selective-test --dot | dot -Tsvg > output.svg && open output.svg`
@@ -175,8 +160,7 @@ It is possible to define the configuration in a separate file. The tool would lo
175
160
Options available are (see `selective-testing-config-example.yml` for an example):
176
161
177
162
-`basePath`: Relative or absolute path to the project. If set, the command line option can be emitted.
178
-
-`testPlan`: Relative or absolute path to the test plan to configure. For backwards compatibility.
179
-
-`testPlans`: Array of relative or absolute paths to test plans to configure. Use this to process multiple test plans.
163
+
-`testPlan`: Relative or absolute path to the test plan to configure.
180
164
-`exclude`: List of relative paths to exclude when looking for Swift packages.
181
165
-`extra/dependencies`: Options allowing to hint tool about dependencies between targets or packages.
182
166
-`extra/targetsFiles`: Options allowing to hint tool about the files affecting targets or packages.
@@ -208,6 +192,5 @@ See LICENSE
208
192
-[Bruno Guidolim](https://github.com/bguidolim)
209
193
-[Alex Deem](https://github.com/alexdeem)
210
194
-[Steffen Matthischke](https://github.com/HeEAaD)
211
-
-[Econa77](https://github.com/Econa77)
212
195
213
196
If you like this product, consider donating to my hometown's charity project [Monsters Corporation](https://monstrov.org) 🤝
0 commit comments