Skip to content

[SR-792] Package.xctest is not generated for very simple Source layout #5396

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-792
Radar None
Original Reporter kkoval (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 060b87caa199c47f7bfa394f5f69c85b

relates to:

  • SR-2270 Should warn about loose source files in the Tests directory

Issue Description:

By following this spec https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md the following folder layout should be supported.

very-simple:
├── Package.swift
├── Sources
│ └── Simple.swift
└── Tests
└── SimpleTest.swift

This Package layout don't generate Package.xctest
./swift-build
Compiling Swift Module 'verysimple' (1 sources)

This package folders layout generates Package.xctest
Simple:
├── Package.swift
├── Sources
│ └── Foo
│ └── Simple.swift
└── Tests
└── Foo
└── SimpleTest.swift

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions