yonaskolb / yonaskolb/XcodeGen
Frameworks unit tests in app
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Hi,
I have Application with frameworks. Each framework has its own scheme and own unit tests.
Application do not have its own unit tests, instead it runs all frameworks unit tests.
How do I achieve this behaviour in XcodeGen?
I tried set it in scheme, but it is not working.
scheme:
testTargets:
- frameworkATests
- frameworkBTests
- frameworkCTests
...
For this settings I get error:
- Target "Application" scheme has invalid test "frameworkATests"
I would expect something like implicit keyword or path to the original project.



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
Start by tracing how scheme testTargets are validated and how framework targets are represented in XcodeGen. Reproduce the reported invalid-test error with the shown Application and frameworkATests setup, then determine how a generated Application scheme could run the framework test targets; done means the configuration generates and runs that scheme successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100