yonaskolb / yonaskolb/XcodeGen

Frameworks unit tests in app

Open
#461 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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.

49642090-59568d80-fa12-11e8-97bb-76e5f6c19c0c
49642091-59568d80-fa12-11e8-9627-09ecebf84f0c
49642092-59568d80-fa12-11e8-970d-bb6d7b44cee3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.