venmo / DVR

Network testing for Swift
http://blog.soff.es/network-testing-in-swift-with-dvr
MIT License
651 stars 86 forks source link

Swift Package Manager #67

Open kiliankoe opened 7 years ago

kiliankoe commented 7 years ago

I'm writing an API wrapper as a library and just started using DVR in my tests, loving it! I'd really love my library staying compatible with Cocoapods, Carthage and Swift Package Manager. This world of three different package managers to support is really something in this ecosystem 😃. My dependencies are declared and integrated via Carthage, which works just fine. Cocoapods doesn't really need to know about DVR since that never runs my tests anyhow. Buuut I kinda still want to be able to run swift test... Is there any way to currently accomplish this? I don't think SPM supports private/dev/test dependencies, does it? Or would it make sense to include DVR as a normal dependency but only require it in test files? Not sure how Swift handles that...

Nevertheless, support for SPM here would be superb and much appreciated. If it makes sense of course. Thanks! 😊

kiliankoe commented 7 years ago

On second thought, SPM projects have no concept of a bundle, so they would also fail finding any cassettes. I guess this is something for the future 🤷‍♂️

loudmouth commented 6 years ago

Now that swift package manager supports testTargets I think it would be great to have support for building with SPM. Is this anywhere on the roadmap, and would PR's be accepted?

loudmouth commented 6 years ago

Issues to track in SPM project:

SR-2866 SR-4725