Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ Alternatively, you can use a prebuilt binary release of the tool distributed und

### Using Swift Package Manager

Add `.package(url: "git@github.com:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "0.14.6"))` to your `Package.swift`'s `dependencies` section.
Add `.package(url: "git@github.com:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "1.15.1"))` to your `Package.swift`'s `dependencies` section.

Use SPM to run the command: `swift run xcode-selective-test`.

Alternatively, you can use a prebuilt binary release of the tool distributed under [releases](https://github.com/mikeger/XcodeSelectiveTesting/releases) section.

### Using [Mint](https://github.com/yonaskolb/Mint)

`mint install mikeger/XcodeSelectiveTesting@0.14.6`
`mint install mikeger/XcodeSelectiveTesting@1.15.1`

### Manually

Expand All @@ -83,12 +83,12 @@ NB: This command assumes you have [jq](https://jqlang.github.io/jq/) tool instal

Alternatively, you can use CLI to achieve the same result:

1. Run `mint run mikeger/XcodeSelectiveTesting@0.14.6 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
1. Run `mint run mikeger/XcodeSelectiveTesting@1.15.1 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes

To process multiple test plans, specify the `--test-plan` option multiple times:
```bash
mint run mikeger/XcodeSelectiveTesting@0.14.6 YourWorkspace.xcworkspace \
mint run mikeger/XcodeSelectiveTesting@1.15.1 YourWorkspace.xcworkspace \
--test-plan TestPlan1.xctestplan \
--test-plan TestPlan2.xctestplan
```
Expand All @@ -103,12 +103,12 @@ mint run mikeger/XcodeSelectiveTesting@0.14.6 YourWorkspace.xcworkspace \
### Use case: Xcode-based project, execute tests on the CI, with test plan

1. Add code to install the tool
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@0.14.6 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
2. Add a CI step before you execute your tests: `mint run mikeger/XcodeSelectiveTesting@1.15.1 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
3. Execute your tests

To process multiple test plans on CI:
```bash
mint run mikeger/XcodeSelectiveTesting@0.14.6 YourWorkspace.xcworkspace \
mint run mikeger/XcodeSelectiveTesting@1.15.1 YourWorkspace.xcworkspace \
--test-plan TestPlan1.xctestplan \
--test-plan TestPlan2.xctestplan \
--base-branch $PR_BASE_BRANCH
Expand Down
Loading