Skip to content

Commit 6a4fe0a

Browse files
authored
Update README.md
1 parent e9e62a7 commit 6a4fe0a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ Alternatively, you can use CLI to achieve the same result:
9999
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.11.0 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
100100
3. Execute your tests
101101

102+
### Use case: GitHub Actions, other cases when the git repo is not in the shape to provide the changeset out of the box
103+
104+
1. Add code to install the tool
105+
2. Collect the list of changed files
106+
3. Provide the list of changed files via the command line option `-c` or `--changed-files`
107+
102108
## How does this work?
103109

104110
### 1. Detecting what is changed
@@ -144,7 +150,8 @@ This is the hardest part: dealing with obscure Xcode formats. But if we get that
144150
- `--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).
145151
- `--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`
146152
- `--turbo`: Turbo mode: run tests only for directly affected targets.
147-
- `--verbose`: Provide verbose output.
153+
- `--verbose`: Provide verbose output.
154+
- `-c, --changed-files`: Provides the list of changed files to take in account. Do not attempt to calculate the changeset.
148155

149156
## Configuration file `.xcode-selective-testing.yml`
150157

0 commit comments

Comments
 (0)