yonaskolb / yonaskolb/XcodeGen
How to add package unit tests to main target
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
I have modularised my app into local swift packages and want to add their test targets to the main target, but can't seem to find a way to do that. Previously they were normal frameworks and I had it setup like so:
targets:
MainApp:
templates: [Target]
dependencies:
[...]
scheme:
gatherCoverageData: true
testTargets:
- name: Framework1
- [...]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no repository file or test entry point. Start by tracing how XcodeGen represents MainApp scheme testTargets and local Swift package targets, then determine whether generated projects can include those package tests; done means the requested configuration is supported and covered by an appropriate test or example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100