yonaskolb / yonaskolb/XcodeGen

Local package tests in test scheme

Open
#809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

Is there an option to add a local package tests target to the project scheme? I'm trying to achieve this:

Screen Shot 2020-03-19 at 15 57 11

My code:

packages: 
   SPMLocal:
       url: https://it.can/be/anything
       from: 2.0.0
localPackages: 
  - ../SPMLocal

schemes:
   ProjectUnitTests:
       build:
         targets:
           SPMLocal/SPMLocalTests: [test]

I'm getting an error because SPMLocal is not found as a projectReference. When I'm adding SPMLocal as a projectReference I'm getting an error that .pbxproj can't be found.

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

The issue does not name source files or tests. Start by tracing how schemes, localPackages, and projectReference entries are processed, then reproduce the reported configuration and determine how a local package test target should be represented without requiring a .pbxproj file. Done means the scheme can include the local package test target and generation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.