[swift-users] Package Manager test target name conflict
daniel_dunbar at apple.com
Sun Jul 30 00:35:12 CDT 2017
Since we don’t have any name spacing facility yet, I think the right answer here is for packages to always give their tests a name like <Package>Tests.
Even though we might conceptually be able to allow a few limited areas of collision, it gets cumbersome when we might offer features like “run all tests of all dependencies”, since we would have to add more complexity to the build process to support this. That doesn’t feel worth it to me given that non-test targets are going to always require some for of name-based name spacing.
> On Jul 29, 2017, at 1:57 PM, Taylor Swift via swift-users <swift-users at swift.org> wrote:
> Many libraries I maintain contain a testTarget called "Tests", but whenever an external package depends on two or more library packages, the "Tests" targets conflict with one another, even though the testTargets are never actually depended on. How do I get the SPM to ignore them?
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users