Skip to content

Support for test plan targets with container paths outside the workspace directory #88

@terrytanvc

Description

@terrytanvc

Hi, I’m trying to use it in a repository where the .xcworkspace is not located at the repository root, and some Swift packages live outside the workspace directory as sibling folders.

RepositoryRoot/
├── Project/
│   ├── App.xcworkspace
│   ├── App.xcodeproj
│   ├── TestPlans/
│   │   └── App.xctestplan
│   └── AppSource/
│       └── ...
│
├── Modules/
│   ├── API/
│   │   ├── Package.swift
│   │   └── Sources/
│   ├── FeatureA/
│   │   ├── Package.swift
│   │   └── Sources/
│   ├── FeatureB/
│   │   ├── Package.swift
│   │   └── Sources/
│   └── FeatureC/
│       ├── Package.swift
│       └── Sources/
│
└── ...

The important part is that the workspace and test plan live under Project/, while some Swift packages live outside that directory as sibling folders under Modules/. As a result, the test plan contains package test targets with container paths like container:../Modules/FeatureA.

When I use the workspace path as the base path, the tool fails while reading the test plan because some test targets have container paths that include ../, for example pointing to packages outside the workspace directory.

Is this repository layout currently supported?

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions