Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support test target for local Swift Package #1169

Merged
merged 27 commits into from
Mar 20, 2022
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
81de1e5
support local Swift Package test case into test scheme
freddi-kit May 5, 2021
2fb1d01
update test
freddi-kit May 5, 2021
70c0e0d
add test
freddi-kit May 5, 2021
f1f0df5
update CHABGELOG.md
freddi-kit May 5, 2021
5474cc5
Update CHANGELOG.md
freddi-kit May 5, 2021
a58383e
revert resolved package test
freddi-kit May 6, 2021
b4b8635
Update Sources/XcodeGenKit/SchemeGenerator.swift
freddi-kit May 6, 2021
fc1ec31
make TargetReference convert from new JSON format
freddi-kit May 7, 2021
9022364
add .package for location of target reference
freddi-kit May 13, 2021
68c29dc
Merge branch 'test-local-spm' of github.com:yonaskolb/XcodeGen into t…
freddi-kit May 13, 2021
9de7623
receive target reference format at target of scheme
freddi-kit May 13, 2021
4ed02a4
update test
freddi-kit May 13, 2021
b8c8aab
update XcodeProj
freddi-kit May 25, 2021
9fd8d2e
Merge branch 'master' into test-local-spm
freddi-kit May 25, 2021
1cda325
add test and fix small bugs
freddi-kit May 25, 2021
f29af31
update docs
freddi-kit May 25, 2021
52d9d81
support multiple style of coverageTargets
freddi-kit May 25, 2021
86ca040
add edge case of parsing test targets
freddi-kit May 25, 2021
69d0072
fix docs
freddi-kit May 25, 2021
6bfa5dc
Update Docs/ProjectSpec.md
freddi-kit Jun 18, 2021
1d746d5
create TestableTargetReference for not making API complex
freddi-kit Oct 20, 2021
771edd4
fix code format
freddi-kit Oct 20, 2021
53a9c34
Merge branch 'master' into test-local-spm
freddi-kit Oct 20, 2021
487d25c
fix parameter name to Testable Target Reference
freddi-kit Oct 20, 2021
66ff567
support directly writing key of Testable Target Reference
freddi-kit Feb 2, 2022
a969634
Merge branch 'master' into test-local-spm
freddi-kit Feb 2, 2022
54ab164
fix compile error in build
freddi-kit Feb 2, 2022
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
Prev Previous commit
Next Next commit
fix parameter name to Testable Target Reference
  • Loading branch information
freddi-kit committed Oct 20, 2021
commit 487d25c69924d2c0e57e1ed2e86a8fd810f507d2
8 changes: 4 additions & 4 deletions Docs/ProjectSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ A multiline script can be written using the various YAML multiline methods, for
### Test Action

- [ ] **gatherCoverageData**: **Bool** - a boolean that indicates if this scheme should gather coverage data. This defaults to false
- [ ] **coverageTargets**: **[[Target Reference](#target-reference)]** - a list of targets to gather code coverage. Each entry can also either be a simple string, a string using [Project Reference](#project-reference) or [Target Reference](#target-reference)
- [ ] **coverageTargets**: **[[Testable Target Reference](#testable-target-reference)]** - a list of targets to gather code coverage. Each entry can also either be a simple string, a string using [Project Reference](#project-reference) or [Testable Target Reference](#testable-target-reference)
- [ ] **targets**: **[[Test Target](#test-target)]** - a list of targets to test. Each entry can either be a simple string, or a [Test Target](#test-target)
- [ ] **customLLDBInit**: **String** - the absolute path to the custom `.lldbinit` file
- [ ] **captureScreenshotsAutomatically**: **Bool** - indicates whether screenshots should be captured automatically while UI Testing. This defaults to true.
Expand All @@ -834,7 +834,7 @@ A multiline script can be written using the various YAML multiline methods, for
A target can be one of a 2 types:

- **name**: **String** - The name of the target. If you want to specify local swift package, please use `target:`.
- **target**: **[Target Reference](#target-reference)** - The information of the target. You can specify more detailed information than `name:`.
- **target**: **[Testable Target Reference](#target-reference)** - The information of the target. You can specify more detailed information than `name:`.

#### Other Parameters

Expand All @@ -844,8 +844,8 @@ A target can be one of a 2 types:
- [ ] **skippedTests**: **[String]** - List of tests in the test target to skip. Defaults to empty
- [ ] **selectedTests**: **[String]** - List of tests in the test target to whitelist and select. Defaults to empty. This will override `skippedTests` if provided

#### Target Reference
A Target Reference can be one of a 3 types:
#### Testable Target Reference
A Testable Target Reference can be one of 3 types:
- `package: {local-swift-package-name}/{target-name}`: Name of local swift package and its target.
- `local: {target-name}`: Name of local target.
- `project: {project-reference-name}/{target-name}`: Name of local swift package and its target.
Expand Down