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
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,14 @@ NB: This command assumes you have [jq](https://jqlang.github.io/jq/) tool instal
84
84
Alternatively, you can use CLI to achieve the same result:
85
85
86
86
1. Run `mint run mikeger/XcodeSelectiveTesting@0.12.7 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
87
-
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes
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.12.7 YourWorkspace.xcworkspace \
92
+
--test-plan TestPlan1.xctestplan \
93
+
--test-plan TestPlan2.xctestplan
94
+
```
88
95
89
96
### Use case: Xcode-based project, execute tests on the CI, no test plan
90
97
@@ -99,6 +106,14 @@ Alternatively, you can use CLI to achieve the same result:
99
106
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.12.7 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
100
107
3. Execute your tests
101
108
109
+
To process multiple test plans on CI:
110
+
```bash
111
+
mint run mikeger/XcodeSelectiveTesting@0.12.7 YourWorkspace.xcworkspace \
112
+
--test-plan TestPlan1.xctestplan \
113
+
--test-plan TestPlan2.xctestplan \
114
+
--base-branch $PR_BASE_BRANCH
115
+
```
116
+
102
117
### Use case: GitHub Actions, other cases when the git repo is not in the shape to provide the changeset out of the box
103
118
104
119
1. Add code to install the tool
@@ -145,7 +160,7 @@ This is the hardest part: dealing with obscure Xcode formats. But if we get that
145
160
146
161
-`--help`: Display all command line options
147
162
-`--base-branch`: Branch to compare against to find the relevant changes. If emitted, a local changeset is used (development mode).
148
-
-`--test-plan`: Path to the test plan. If not given, tool would try to infer the path.
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.
149
164
-`--json`: Provide output in JSON format (STDOUT).
150
165
-`--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).
151
166
-`--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`
@@ -160,7 +175,8 @@ It is possible to define the configuration in a separate file. The tool would lo
160
175
Options available are (see `selective-testing-config-example.yml` for an example):
161
176
162
177
-`basePath`: Relative or absolute path to the project. If set, the command line option can be emitted.
163
-
-`testPlan`: Relative or absolute path to the test plan to configure.
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.
164
180
-`exclude`: List of relative paths to exclude when looking for Swift packages.
165
181
-`extra/dependencies`: Options allowing to hint tool about dependencies between targets or packages.
166
182
-`extra/targetsFiles`: Options allowing to hint tool about the files affecting targets or packages.
0 commit comments