Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeger authored Feb 5, 2024
1 parent bff220b commit bf63a13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ Add to Xcode as SPM dependency.

### Using Swift Package Manager

Add `.package(url: "[email protected]:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "0.9.1"))` to your `Package.swift`'s `dependencies` section.
Add `.package(url: "[email protected]:mikeger/XcodeSelectiveTesting", .upToNextMajor(from: "0.9.2"))` to your `Package.swift`'s `dependencies` section.

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

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

`mint install mikeger/[email protected].1`
`mint install mikeger/[email protected].2`

### Manually

Expand All @@ -77,7 +77,7 @@ 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/[email protected].1 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
1. Run `mint run mikeger/[email protected].2 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan`
2. Run tests normally, XcodeSelectiveTesting would modify your test plan according to the local changes

### Use case: Xcode-based project, execute tests on the CI, no test plan
Expand All @@ -90,7 +90,7 @@ Alternatively, you can use CLI to achieve the same result:
### 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/[email protected].1 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
2. Add a CI step before you execute your tests: `mint run mikeger/[email protected].2 YourWorkspace.xcworkspace --test-plan YourTestPlan.xctestplan --base-branch $PR_BASE_BRANCH`
3. Execute your tests

## How does this work?
Expand Down

0 comments on commit bf63a13

Please sign in to comment.