Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support swift test for Swift packages #100

Open
smolck opened this issue Jun 22, 2022 · 1 comment
Open

Support swift test for Swift packages #100

smolck opened this issue Jun 22, 2022 · 1 comment
Labels
daemon feature New feature or request
Milestone

Comments

@smolck
Copy link

smolck commented Jun 22, 2022

Apologies if I just missed it, but currently there doesn't seem to be a command/picker for testing a Swift package? Just building/running (which for a library, just equates to building).

@kkharji kkharji added feature New feature or request daemon labels Jun 22, 2022
@kkharji kkharji modified the milestones: 0.4, 0.3 Jun 22, 2022
@kkharji
Copy link
Owner

kkharji commented Jun 23, 2022

Yes, no support for running test for both xcodeproj and swift.

For swift, it should be straightforward, when extracting targets from Package.swift through swift package dump-package you can see which targets are tests targets, in current implementation of SwiftProject I'm ignoring tests from targets. For this to work, the type of targets, rn HashMap<String, PBXTargetPlatform>, needs to allow for target kind, so maybe new type Target.

For the xcodeproj, we might endup deciding which is test and which is not through checking if it prefixed with Test.

From here, we have a new proto Test and a picker.

I suggest making this issue Support Test and swift test as todo item,

@kkharji kkharji modified the milestones: 0.3, 0.4 Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
daemon feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants